diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-10-19 21:44:58 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-10-19 21:44:58 +0900 |
| commit | 3efbea3fab1fedf1f6b783204fd226653e908f6e (patch) | |
| tree | e8261ef2778943ee2566024c2d986877ea8ad8d3 /mrblib/enum.rb | |
| parent | 17278e8ca69d79f4d37e65830c95cc6004c2d8f5 (diff) | |
| download | mruby-3efbea3fab1fedf1f6b783204fd226653e908f6e.tar.gz mruby-3efbea3fab1fedf1f6b783204fd226653e908f6e.zip | |
wrong check of argument numbers
Diffstat (limited to 'mrblib/enum.rb')
| -rw-r--r-- | mrblib/enum.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/enum.rb b/mrblib/enum.rb index 29422716c..2774bc856 100644 --- a/mrblib/enum.rb +++ b/mrblib/enum.rb @@ -199,7 +199,7 @@ module Enumerable # # ISO 15.3.2.2.11 def inject(*args, &block) - raise ArgumentError, "too many arguments" if args.size > 3 + raise ArgumentError, "too many arguments" if args.size > 2 if Symbol === args[-1] sym = args[-1] block = ->(x,y){x.send(sym,y)} |
