summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-18 15:56:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-18 15:56:34 +0900
commit8459b3988633b7fd260857e7f023fa8ecf6bb472 (patch)
tree6c6bd48fb1ed0ff614a69652fb80f083166de511
parenteab4a7492f674d859fb497ca6eb025956e6453b7 (diff)
downloadmruby-8459b3988633b7fd260857e7f023fa8ecf6bb472.tar.gz
mruby-8459b3988633b7fd260857e7f023fa8ecf6bb472.zip
update String#slice doc
-rw-r--r--src/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 8015391b6..6570c89fb 100644
--- a/src/string.c
+++ b/src/string.c
@@ -813,6 +813,7 @@ num_index:
* str[other_str] => new_str or nil
* str.slice(fixnum) => fixnum or nil
* str.slice(fixnum, fixnum) => new_str or nil
+ * str.slice(range) => new_str or nil
* str.slice(other_str) => new_str or nil
*
* Element Reference---If passed a single <code>Fixnum</code>, returns the code