mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix an incorrect comment in cowboy_router
This commit is contained in:
parent
80137fb2cd
commit
02ed254daa
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ compile_rules(<< $], _/binary >>, _, _, _, _) ->
|
||||||
compile_rules(<< C, Rest/binary >>, S, Segments, Rules, Acc) ->
|
compile_rules(<< C, Rest/binary >>, S, Segments, Rules, Acc) ->
|
||||||
compile_rules(Rest, S, Segments, Rules, << Acc/binary, C >>).
|
compile_rules(Rest, S, Segments, Rules, << Acc/binary, C >>).
|
||||||
|
|
||||||
%% Everything past $: until $. or $[ or $] or end of binary
|
%% Everything past $: until the segment separator ($. for hosts,
|
||||||
%% is the binding name.
|
%% $/ for paths) or $[ or $] or end of binary is the binding name.
|
||||||
compile_binding(<<>>, _, <<>>) ->
|
compile_binding(<<>>, _, <<>>) ->
|
||||||
erlang:error(badarg);
|
erlang:error(badarg);
|
||||||
compile_binding(Rest = <<>>, _, Acc) ->
|
compile_binding(Rest = <<>>, _, Acc) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue