Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Without calling the s function you will get a type error as you won't have a Parser.
  • Loading branch information
ulrikstrid committed Jun 5, 2017
1 parent da6f8d3 commit 1f46aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UrlParser.elm
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ mapHelp func {visited, unvisited, params, value} =
[ map Search (s "search" </> string)
, map Blog (s "blog" </> int)
, map User (s "user" </> string)
, map Comment (s "user" </> string </> "comments" </> int)
, map Comment (s "user" </> string </> s "comments" </> int)
]
parsePath route location
Expand Down Expand Up @@ -411,4 +411,4 @@ toKeyValuePair segment =
Maybe.map2 (,) (Http.decodeUri key) (Http.decodeUri value)

_ ->
Nothing
Nothing

0 comments on commit 1f46aeb

Please sign in to comment.