Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct references to unexported type #74

Merged
merged 1 commit into from
Mar 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Correct references to unexported type
  • Loading branch information
Luca Favatella committed Mar 13, 2017
commit 5d5fe7e6fcc2d97fe3a90b0d9e083eb889262d52
4 changes: 2 additions & 2 deletions src/trails.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

%% Trail specification
-opaque trail() ::
#{ path_match => cowboy_router:route_match()
#{ path_match => route_match()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you defining this route_match() type somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, at line 45.

, constraints => cowboy_router:constraints()
, handler => module()
, options => any()
Expand Down Expand Up @@ -119,7 +119,7 @@ trail(PathMatch, ModuleHandler, Options, MetaData, Constraints) ->
}.

%% @doc Gets the `path_match' from the given `trail'.
-spec path_match(trail()) -> cowboy_router:route_match().
-spec path_match(trail()) -> route_match().
path_match(Trail) ->
maps:get(path_match, Trail, []).

Expand Down