[前][次][番号順一覧][スレッド一覧]

ruby-changes:55528

From: Kazuhiro <ko1@a...>
Date: Thu, 25 Apr 2019 19:44:48 +0900 (JST)
Subject: [ruby-changes:55528] Kazuhiro NISHIYAMA:8c689e216f (trunk): Merge branch 'patch-5' of https://github.com/sos4nt/ruby into trunk

From e19e5d2409e99ef7fd450d317e71e119cb5a4c3a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Sch=C3=BC=C3=9Fler?= <mail@s...>
Date: Mon, 18 Feb 2019 12:44:01 +0100
Subject: Fix return value name in docs for Array#union

Throughout the docs, `new_ary` is used to indicate a new array, whereas `ary` refers to the receiver.

diff --git a/array.c b/array.c
index d096347..395a6c1 100644
--- a/array.c
+++ b/array.c
@@ -4683,7 +4683,7 @@ rb_ary_or(VALUE ary1, VALUE ary2) https://github.com/ruby/ruby/blob/trunk/array.c#L4683
 
 /*
  *  call-seq:
- *     ary.union(other_ary1, other_ary2, ...)   -> ary
+ *     ary.union(other_ary1, other_ary2, ...)   -> new_ary
  *
  *  Set Union --- Returns a new array by joining <code>other_ary</code>s with +self+,
  *  excluding any duplicates and preserving the order from the given arrays.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]