Skip to content

Commit

Permalink
Use new callbacks in URI.Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Oct 28, 2012
1 parent ee380fe commit 078da93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/elixir/lib/uri/parser.ex
Expand Up @@ -9,10 +9,10 @@ defmodule URI.Parser do
@doc """
Responsible for parsing extra URL information.
"""
defcallback parse(uri_info)
defcallback parse(uri_info :: URI.Info.t), do: URI.Info.t

@doc """
Responsible for returning the default port.
"""
defcallback default_port()
defcallback default_port(), do: integer
end

0 comments on commit 078da93

Please sign in to comment.