aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 01:22:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 01:22:51 +0000
commitfb9c1db7cd67bc70d10d49c3fdb4b5569091f513 (patch)
treebfdc22e89ff99cb92099f7600189268b78a77fc2 /eval_error.c
parent62d49743744638fc5ee17d1f96c3ca7105b8ab82 (diff)
downloadruby-fb9c1db7cd67bc70d10d49c3fdb4b5569091f513.tar.gz
eval_error.c: Fix a format of `NameError#message`
* eval_error.c (undef_mesg_for): fix typo. Before this commit `ArgumentError: malformed format string - %$` was raised when `NameError#message` is called. [ruby-core:71282] [Bug #11640] [Fix GH-1077] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index 395b9b0196..24bab9eab9 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -208,7 +208,7 @@ ruby_error_print(void)
error_print();
}
-#define undef_mesg_for(v, k) rb_fstring_cstr("undefined"v" method `%1$s' for "k" `%$s'")
+#define undef_mesg_for(v, k) rb_fstring_cstr("undefined"v" method `%1$s' for "k" `%2$s'")
#define undef_mesg(v) ( \
is_mod ? \
undef_mesg_for(v, "module") : \