Skip to content

Commit

Permalink
Convert @docp to comment
Browse files Browse the repository at this point in the history
Elixir generates warnings for this as it's considered an unused module attribute (@docp is not an official standard).
  • Loading branch information
Yogi Patel authored Jul 4, 2017
1 parent 1d089c0 commit 6160369
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/valid_url.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ defmodule ValidUrl do
It exposes a single function, `validate`.
"""

@docp """
Regex to validate URLs.
Adapted from https://gist.github.com/dperini/729294.
"""
# Regex to validate URLs.
# Adapted from https://gist.github.com/dperini/729294.
@link_regex Regex.compile!(
"^" <>
# protocol identifier
Expand Down

0 comments on commit 6160369

Please sign in to comment.