From: BurdetteLamar Date: Sun, 1 Dec 2024 22:56:47 +0000 (-0600) Subject: Correct order of listed methods X-Git-Tag: v3_4_0_rc1~209 X-Git-Url: https://repo.or.cz/ruby.git/commitdiff_plain/d588a1c880c5aadb3a802358df73b0c6e1fcf1a1 Correct order of listed methods --- diff --git a/array.c b/array.c index 89967c5594..d4b9b87b25 100644 --- a/array.c +++ b/array.c @@ -8684,12 +8684,12 @@ rb_ary_deconstruct(VALUE ary) * - #&: Returns an array containing elements found both in +self+ and a given array. * - #+: Returns an array containing all elements of +self+ followed by all elements of a given array. * - #-: Returns an array containing all elements of +self+ that are not found in a given array. + * - #|: Returns an array containing all element of +self+ and all elements of a given array, duplicates removed. * - #difference: Returns an array containing all elements of +self+ that are not found in any of the given arrays.. * - #intersection: Returns an array containing elements found both in +self+ and in each given array. * - #product: Returns or yields all combinations of elements from +self+ and given arrays. * - #reverse: Returns an array containing all elements of +self+ in reverse order. * - #union: Returns an array containing all elements of +self+ and all elements of given arrays, duplicates removed. - * - #|: Returns an array containing all elements of +self+ and all elements of a given array, duplicates removed. * * === Methods for Iterating * diff --git a/numeric.c b/numeric.c index 20c1b50866..a36370b9a4 100644 --- a/numeric.c +++ b/numeric.c @@ -3592,6 +3592,7 @@ rb_num2ull(VALUE val) * - #>>: Returns the value of +self+ after a rightward bit-shift. * - #[]: Returns a slice of bits from +self+. * - #^: Returns the bitwise EXCLUSIVE OR of +self+ and the given value. + * - #|: Returns the bitwise OR of +self+ and the given value. * - #ceil: Returns the smallest number greater than or equal to +self+. * - #chr: Returns a 1-character string containing the character * represented by the value of +self+. @@ -3611,7 +3612,6 @@ rb_num2ull(VALUE val) * - #to_s (aliased as #inspect): Returns a string containing the place-value * representation of +self+ in the given radix. * - #truncate: Returns +self+ truncated to the given precision. - * - #|: Returns the bitwise OR of +self+ and the given value. * * === Other *