update String#slice doc

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-06-18 15:56:34 +09:00
parent eab4a7492f
commit 8459b39886
+1
View File
@@ -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