diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-17 00:41:54 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-11-17 00:41:54 +0900 |
| commit | 5208ee534f81085127ef2f480992e8d104b908ea (patch) | |
| tree | 3c59d755eba02cc8b4ca54ce4dd37cc0a01770a7 /src/string.c | |
| parent | 1685eff2a5e672173d67916a1c96648df92b7271 (diff) | |
| parent | 8e0dc6fa8db54d43d6d0dc4b81751cc3db06ebf0 (diff) | |
| download | mruby-5208ee534f81085127ef2f480992e8d104b908ea.tar.gz mruby-5208ee534f81085127ef2f480992e8d104b908ea.zip | |
Merge pull request #3250 from dabroz/feature-correct-aspec
Correct argument specifications for few methods
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c index 15fcc502a..8c46da2bf 100644 --- a/src/string.c +++ b/src/string.c @@ -2723,8 +2723,8 @@ mrb_init_string(mrb_state *mrb) mrb_define_method(mrb, s, "capitalize!", mrb_str_capitalize_bang, MRB_ARGS_NONE()); /* 15.2.10.5.8 */ mrb_define_method(mrb, s, "chomp", mrb_str_chomp, MRB_ARGS_ANY()); /* 15.2.10.5.9 */ mrb_define_method(mrb, s, "chomp!", mrb_str_chomp_bang, MRB_ARGS_ANY()); /* 15.2.10.5.10 */ - mrb_define_method(mrb, s, "chop", mrb_str_chop, MRB_ARGS_REQ(1)); /* 15.2.10.5.11 */ - mrb_define_method(mrb, s, "chop!", mrb_str_chop_bang, MRB_ARGS_REQ(1)); /* 15.2.10.5.12 */ + mrb_define_method(mrb, s, "chop", mrb_str_chop, MRB_ARGS_NONE()); /* 15.2.10.5.11 */ + mrb_define_method(mrb, s, "chop!", mrb_str_chop_bang, MRB_ARGS_NONE()); /* 15.2.10.5.12 */ mrb_define_method(mrb, s, "downcase", mrb_str_downcase, MRB_ARGS_NONE()); /* 15.2.10.5.13 */ mrb_define_method(mrb, s, "downcase!", mrb_str_downcase_bang, MRB_ARGS_NONE()); /* 15.2.10.5.14 */ mrb_define_method(mrb, s, "empty?", mrb_str_empty_p, MRB_ARGS_NONE()); /* 15.2.10.5.16 */ |
