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

ruby-changes:57773

From: Kenichi <ko1@a...>
Date: Wed, 18 Sep 2019 17:29:49 +0900 (JST)
Subject: [ruby-changes:57773] 9118cb242b (master): Fix typos

https://git.ruby-lang.org/ruby.git/commit/?id=9118cb242b

From 9118cb242b141c380a0180f64ffeb0c9fdae0c8b Mon Sep 17 00:00:00 2001
From: Kenichi Kamiya <kachick1@g...>
Date: Wed, 18 Sep 2019 17:24:24 +0900
Subject: Fix typos


diff --git a/array.c b/array.c
index 3717c3f..55b408e 100644
--- a/array.c
+++ b/array.c
@@ -4500,7 +4500,7 @@ ary_recycle_hash(VALUE hash) https://github.com/ruby/ruby/blob/trunk/array.c#L4500
  *  Array Difference
  *
  *  Returns a new array that is a copy of the original array, removing all
- *  occurences of any item that also appear in +other_ary+. The order is
+ *  occurrences of any item that also appear in +other_ary+. The order is
  *  preserved from the original array.
  *
  *  It compares elements using their #hash and #eql? methods for efficiency.
@@ -4508,7 +4508,7 @@ ary_recycle_hash(VALUE hash) https://github.com/ruby/ruby/blob/trunk/array.c#L4508
  *     [ 1, 1, 2, 2, 3, 3, 4, 5 ] - [ 1, 2, 4 ]  #=>  [ 3, 3, 5 ]
  *
  *  Note that while 1 and 2 were only present once in the array argument, and
- *  were present twice in the receiver array, all occurences of each Integer are
+ *  were present twice in the receiver array, all occurrences of each Integer are
  *  removed in the returned array.
  *
  *  If you need set-like behavior, see the library class Set.
@@ -4551,7 +4551,7 @@ rb_ary_diff(VALUE ary1, VALUE ary2) https://github.com/ruby/ruby/blob/trunk/array.c#L4551
  *  Array Difference
  *
  *  Returns a new array that is a copy of the original array, removing all
- *  occurences of any item that also appear in +other_ary+. The order is
+ *  occurrences of any item that also appear in +other_ary+. The order is
  *  preserved from the original array.
  *
  *  It compares elements using their #hash and #eql? methods for efficiency.
@@ -4559,10 +4559,10 @@ rb_ary_diff(VALUE ary1, VALUE ary2) https://github.com/ruby/ruby/blob/trunk/array.c#L4559
  *     [ 1, 1, 2, 2, 3, 3, 4, 5 ].difference([ 1, 2, 4 ])     #=> [ 3, 3, 5 ]
  *
  *  Note that while 1 and 2 were only present once in the array argument, and
- *  were present twice in the receiver array, all occurences of each Integer are
+ *  were present twice in the receiver array, all occurrences of each Integer are
  *  removed in the returned array.
  *
- *  Multiple array arguments can be supplied and all occurences of any element
+ *  Multiple array arguments can be supplied and all occurrences of any element
  *  in those supplied arrays that match the receiver will be removed from the
  *  returned array.
  *
-- 
cgit v0.10.2


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

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