summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2015-06-19 20:34:32 +0900
committeryui-knk <[email protected]>2015-06-19 20:34:32 +0900
commitd1e6d647bd3a91d58567657471f3d945836cde85 (patch)
tree713f12f16bc5ccf756e9bc5cf3bbce019a233350
parent40e46944a285e1113f66ad0d070e7e595e7d63e4 (diff)
downloadmruby-d1e6d647bd3a91d58567657471f3d945836cde85.tar.gz
mruby-d1e6d647bd3a91d58567657471f3d945836cde85.zip
[ci skip] Remove some Srting#split samples
mruby not support regexp, so remove these samples.
-rw-r--r--src/string.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c
index 16e7f9ffd..e3a359b49 100644
--- a/src/string.c
+++ b/src/string.c
@@ -1714,10 +1714,8 @@ mrb_str_rindex_m(mrb_state *mrb, mrb_value str)
* " now's the time".split #=> ["now's", "the", "time"]
* " now's the time".split(' ') #=> ["now's", "the", "time"]
* " now's the time".split(/ /) #=> ["", "now's", "", "the", "time"]
- * "1, 2.34,56, 7".split(%r{,\s*}) #=> ["1", "2.34", "56", "7"]
* "hello".split(//) #=> ["h", "e", "l", "l", "o"]
* "hello".split(//, 3) #=> ["h", "e", "llo"]
- * "hi mom".split(%r{\s*}) #=> ["h", "i", "m", "o", "m"]
*
* "mellow yellow".split("ello") #=> ["m", "w y", "w"]
* "1,2,,3,4,,".split(',') #=> ["1", "2", "", "3", "4"]