Skip to content

Commit

Permalink
fix ArgumentError message in #reset
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfryed committed Jun 25, 2012
1 parent f441d9f commit 8daaccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-parser.rb
Expand Up @@ -23,7 +23,7 @@ def initialize type = TYPE_BOTH

def reset value = nil
if value
raise ArgumentError, "Invalid parser type #{type}" unless (0..2).include?(value)
raise ArgumentError, "Invalid parser type #{value}" unless [0, 1, 2].include?(value)
@type = value
end

Expand Down

0 comments on commit 8daaccc

Please sign in to comment.