Skip to content

Commit

Permalink
Fix call to binary:match to actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed Oct 31, 2010
1 parent 3c40476 commit 4cd4b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binstr.erl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

strchr(Bin, C) when is_binary(Bin) ->
% try to use the R14B binary module
try binary:match(Bin, C) of
try binary:match(Bin, <<C>>) of
{Index, _Length} ->
Index + 1;
nomatch ->
Expand Down

0 comments on commit 4cd4b5c

Please sign in to comment.