@@ -5408,16 +5408,18 @@ ary_make_hash_by(VALUE ary)
5408
5408
5409
5409
/*
5410
5410
* call-seq:
5411
- * array - other_array -> new_array
5411
+ * self - other_array -> new_array
5412
5412
*
5413
- * Returns a new +Array+ containing only those elements from +array+
5414
- * that are not found in +Array+ +other_array+;
5415
- * items are compared using <tt>eql?</tt>;
5416
- * the order from +array+ is preserved:
5413
+ * Returns a new array containing only those elements of +self+
5414
+ * that are not found in +other_array+;
5415
+ * the order from +self+ is preserved:
5417
5416
*
5418
- * [0, 1, 1, 2, 1, 1, 3, 1, 1] - [1] # => [0, 2, 3]
5419
- * [0, 1, 2, 3] - [3, 0] # => [1, 2]
5420
- * [0, 1, 2] - [4] # => [0, 1, 2]
5417
+ * [0, 1, 1, 2, 1, 1, 3, 1, 1] - [1] # => [0, 2, 3]
5418
+ * [0, 1, 1, 2, 1, 1, 3, 1, 1] - [3, 2, 0, :foo] # => [1, 1, 1, 1, 1, 1]
5419
+ * [0, 1, 2] - [:foo] # => [0, 1, 2]
5420
+ *
5421
+ * Element are compared using method <tt>#eql?</tt>
5422
+ * (as defined in each element of +self+).
5421
5423
*
5422
5424
* Related: Array#difference.
5423
5425
*/
0 commit comments