Correct order of listed methods
authorBurdetteLamar <[email protected]>
Sun, 1 Dec 2024 22:56:47 +0000 (1 16:56 -0600)
committerPeter Zhu <[email protected]>
Mon, 2 Dec 2024 20:28:53 +0000 (2 15:28 -0500)
array.c
numeric.c

diff --git a/array.c b/array.c
index 89967c5..d4b9b87 100644 (file)
--- 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
  *
index 20c1b50..a36370b 100644 (file)
--- 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
  *