From 8459b3988633b7fd260857e7f023fa8ecf6bb472 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 18 Jun 2014 15:56:34 +0900 Subject: update String#slice doc --- src/string.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/string.c') 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 Fixnum, returns the code -- cgit v1.2.3