Skip to content

Commit

Permalink
Fixed unexpected ':' token error on Ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ishikawa committed Aug 27, 2011
1 parent 31b82af commit 75b7c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rparsec/parser.rb
Expand Up @@ -878,7 +878,7 @@ def as_char c
end
def as_num c
case c when String: c[0] else c end
case c when String then c[0] else c end
end
def as_list vals
Expand Down

0 comments on commit 75b7c34

Please sign in to comment.