aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-25 12:57:34 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-25 12:57:34 +0000
commit9185bee7fb1d09cd199e3cea2a5a12bd0e552037 (patch)
tree580d5e01eb7eaf23c0041bf3cc6661197c891080 /array.c
parent9c185a7b94b8e2b938df91c047ddf9c54cfc4990 (diff)
downloadruby-9185bee7fb1d09cd199e3cea2a5a12bd0e552037.tar.gz
Fix `shadowing outer local variable` warning [ci skip]
ref https://github.com/rurema/doctree/pull/697 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/array.c b/array.c
index 5ec72c6930..6eebfdab1c 100644
--- a/array.c
+++ b/array.c
@@ -4301,16 +4301,16 @@ rb_ary_or(VALUE ary1, VALUE ary2)
* first form assumes all objects implement <code>Comparable</code>;
* the second uses the block to return <em>a <=> b</em>.
*
- * a = %w(albatross dog horse)
- * a.max #=> "horse"
- * a.max { |a, b| a.length <=> b.length } #=> "albatross"
+ * ary = %w(albatross dog horse)
+ * ary.max #=> "horse"
+ * ary.max { |a, b| a.length <=> b.length } #=> "albatross"
*
* If the +n+ argument is given, maximum +n+ elements are returned
* as an array.
*
- * a = %w[albatross dog horse]
- * a.max(2) #=> ["horse", "dog"]
- * a.max(2) {|a, b| a.length <=> b.length } #=> ["albatross", "horse"]
+ * ary = %w[albatross dog horse]
+ * ary.max(2) #=> ["horse", "dog"]
+ * ary.max(2) {|a, b| a.length <=> b.length } #=> ["albatross", "horse"]
*/
static VALUE
rb_ary_max(int argc, VALUE *argv, VALUE ary)
@@ -4356,16 +4356,16 @@ rb_ary_max(int argc, VALUE *argv, VALUE ary)
* first form assumes all objects implement <code>Comparable</code>;
* the second uses the block to return <em>a <=> b</em>.
*
- * a = %w(albatross dog horse)
- * a.min #=> "albatross"
- * a.min { |a, b| a.length <=> b.length } #=> "dog"
+ * ary = %w(albatross dog horse)
+ * ary.min #=> "albatross"
+ * ary.min { |a, b| a.length <=> b.length } #=> "dog"
*
* If the +n+ argument is given, minimum +n+ elements are returned
* as an array.
*
- * a = %w[albatross dog horse]
- * a.min(2) #=> ["albatross", "dog"]
- * a.min(2) {|a, b| a.length <=> b.length } #=> ["dog", "horse"]
+ * ary = %w[albatross dog horse]
+ * ary.min(2) #=> ["albatross", "dog"]
+ * ary.min(2) {|a, b| a.length <=> b.length } #=> ["dog", "horse"]
*/
static VALUE
rb_ary_min(int argc, VALUE *argv, VALUE ary)