diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-10-28 22:24:04 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-28 22:24:04 +0900 |
| commit | 34f68d01049d5124a7137783f34b3c5884d27fbc (patch) | |
| tree | 06d3fafa1eefa295a5c2c926692e7058edbeb038 /src/string.c | |
| parent | 552bd9dafff0d51701dc4144355d14eba02b0caf (diff) | |
| parent | 23cb78a0ff5fa9da1878006308a2680f15ad6222 (diff) | |
| download | mruby-34f68d01049d5124a7137783f34b3c5884d27fbc.tar.gz mruby-34f68d01049d5124a7137783f34b3c5884d27fbc.zip | |
Merge pull request #4795 from shuujii/remove-documents-about-Regexp-argument-from-string
Remove documents about `Regexp` argument from `String#{[],[]=}` [ci skip]
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/string.c b/src/string.c index ebcabad38..b7eef5888 100644 --- a/src/string.c +++ b/src/string.c @@ -1228,8 +1228,6 @@ mrb_str_aref(mrb_state *mrb, mrb_value str, mrb_value indx, mrb_value alen) * str[fixnum] => fixnum or nil * str[fixnum, fixnum] => new_str or nil * str[range] => new_str or nil - * str[regexp] => new_str or nil - * str[regexp, fixnum] => new_str or nil * str[other_str] => new_str or nil * str.slice(fixnum) => fixnum or nil * str.slice(fixnum, fixnum) => new_str or nil @@ -1437,8 +1435,6 @@ mrb_str_aset(mrb_state *mrb, mrb_value str, mrb_value indx, mrb_value alen, mrb_ * str[fixnum] = replace * str[fixnum, fixnum] = replace * str[range] = replace - * str[regexp] = replace - * str[regexp, fixnum] = replace * str[other_str] = replace * * Modify +self+ by replacing the content of +self+. |
