summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-05 02:52:10 +0000
committerayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-05 02:52:10 +0000
commit32e79b64eab63970b8dc9c6d254513f6e2d5e5ad (patch)
treec5d8d09117c4b59b0405f6df2e1fee91b905a24c /array.c
parent7c3a00a1fe73ed45050fe74f61c3e0cd8ff7768a (diff)
Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index c0ebf66442..ce36e193b6 100644
--- a/array.c
+++ b/array.c
@@ -3955,7 +3955,7 @@ rb_ary_shuffle(int argc, VALUE *argv, VALUE ary)
* If +rng+ is given, it will be used as the random number generator.
*
* a = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
- * a.sample #=> [7]
+ * a.sample #=> 7
* a.sample(4) #=> [6, 4, 2, 5]
*/