summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-proc-ext/mrblib/proc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-proc-ext/mrblib/proc.rb')
-rw-r--r--mrbgems/mruby-proc-ext/mrblib/proc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-proc-ext/mrblib/proc.rb b/mrbgems/mruby-proc-ext/mrblib/proc.rb
index 3be0afbbc..0c0df205e 100644
--- a/mrbgems/mruby-proc-ext/mrblib/proc.rb
+++ b/mrbgems/mruby-proc-ext/mrblib/proc.rb
@@ -21,7 +21,7 @@ class Proc
self_arity = self.arity
if (self_arity >= 0 && arity != self_arity) ||
(self_arity < 0 && abs[self_arity] > arity)
- raise ArgumentError, "wrong number of arguments (#{arity} for #{abs[self_arity]})"
+ raise ArgumentError, "wrong number of arguments (given #{arity}, expected #{abs[self_arity]})"
end
end