diff options
author | Loïc Hoguin <[email protected]> | 2013-02-27 12:40:24 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-02-27 12:40:24 +0100 |
commit | 02ed254daa2df86ce8eff7f68b5f202ac9d31a7d (patch) | |
tree | 7a68c237b3de5949f0403833a1b62d9e6f997543 /src/cowboy_router.erl | |
parent | 80137fb2cd393d10ec515b42b1fec40f082d0851 (diff) | |
download | cowboy-02ed254daa2df86ce8eff7f68b5f202ac9d31a7d.tar.gz cowboy-02ed254daa2df86ce8eff7f68b5f202ac9d31a7d.tar.bz2 cowboy-02ed254daa2df86ce8eff7f68b5f202ac9d31a7d.zip |
Fix an incorrect comment in cowboy_router
Diffstat (limited to 'src/cowboy_router.erl')
-rw-r--r-- | src/cowboy_router.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_router.erl b/src/cowboy_router.erl index 10db3f7..adb1711 100644 --- a/src/cowboy_router.erl +++ b/src/cowboy_router.erl @@ -130,8 +130,8 @@ compile_rules(<< $], _/binary >>, _, _, _, _) -> compile_rules(<< C, Rest/binary >>, S, Segments, Rules, Acc) -> compile_rules(Rest, S, Segments, Rules, << Acc/binary, C >>). -%% Everything past $: until $. or $[ or $] or end of binary -%% is the binding name. +%% Everything past $: until the segment separator ($. for hosts, +%% $/ for paths) or $[ or $] or end of binary is the binding name. compile_binding(<<>>, _, <<>>) -> erlang:error(badarg); compile_binding(Rest = <<>>, _, Acc) -> |