From 2012e7e60ede26537e9eed25e64bcbcd73dc9d5e Mon Sep 17 00:00:00 2001 From: drbrain Date: Sun, 13 Aug 2006 05:35:35 +0000 Subject: Describe String#split grouping behavior. Patch by Jan Svitok [ruby-core:08603]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index 816dde4b0..ef065b831 100644 --- a/string.c +++ b/string.c @@ -3256,7 +3256,8 @@ rb_str_count(int argc, VALUE *argv, VALUE str) * * If pattern is a Regexp, str is divided where the * pattern matches. Whenever the pattern matches a zero-length string, - * str is split into individual characters. + * str is split into individual characters. If pattern contains + * groups, the respective matches will be returned in the array as well. * * If pattern is omitted, the value of $; is used. If * $; is nil (which is the default), str is -- cgit