diff options
author | OKURA Masafumi <[email protected]> | 2021-05-03 22:38:51 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-09-01 13:18:55 +0900 |
commit | 8d5292f702e79ed03d21ef338210602f32948b53 () | |
tree | ca8ff52cd7232f9ad9797eb4faecde67df9a5b2a /eval_error.c | |
parent | f2ffa8896436050af679db6b5dff7b1fc35ef819 (diff) |
Trim extra whitespace in inaccesible error message
One whitespace is already included in `inaccessible_mesg_for` macro. This extra whitespace is included since 72ff61f4a8ae7a8bf05b0bd6f91b3b290645627c
Notes: Merged: https://.com/ruby/ruby/pull/4447
-rw-r--r-- | eval_error.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -430,8 +430,8 @@ rb_print_inaccessible(VALUE klass, ID id, rb_method_visibility_t visi) switch (visi & METHOD_VISI_MASK) { case METHOD_VISI_UNDEF: case METHOD_VISI_PUBLIC: mesg = inaccessible_mesg(""); break; - case METHOD_VISI_PRIVATE: mesg = inaccessible_mesg(" private"); break; - case METHOD_VISI_PROTECTED: mesg = inaccessible_mesg(" protected"); break; default: UNREACHABLE; } rb_name_err_raise_str(mesg, klass, ID2SYM(id)); |