summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/mrblib/array.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-05-14 10:34:11 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-05-14 10:34:11 +0900
commitbdb5d85adce53a0639b8cb722c1a8571dd5fd58c (patch)
tree9a0f4f5279ba91d90e1614692543373b39f33eb6 /mrbgems/mruby-array-ext/mrblib/array.rb
parent364f275997a8deb2972b452f38b7155f21df4e92 (diff)
downloadmruby-bdb5d85adce53a0639b8cb722c1a8571dd5fd58c.tar.gz
mruby-bdb5d85adce53a0639b8cb722c1a8571dd5fd58c.zip
array.rb: replace `can't` with `cannot`.
To avoid editor coloring failures.
Diffstat (limited to 'mrbgems/mruby-array-ext/mrblib/array.rb')
-rw-r--r--mrbgems/mruby-array-ext/mrblib/array.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-array-ext/mrblib/array.rb b/mrbgems/mruby-array-ext/mrblib/array.rb
index ecd09aa6e..47446181e 100644
--- a/mrbgems/mruby-array-ext/mrblib/array.rb
+++ b/mrbgems/mruby-array-ext/mrblib/array.rb
@@ -150,7 +150,7 @@ class Array
# [ 1, 1, 3, 5 ] & [ 1, 2, 3 ] #=> [ 1, 3 ]
#
def &(elem)
- raise TypeError, "can't convert #{elem.class} into Array" unless elem.class == Array
+ raise TypeError, "cannot convert #{elem.class} into Array" unless elem.class == Array
hash = {}
array = []
@@ -204,7 +204,7 @@ class Array
# a.intersect?(b) #=> true
# a.intersect?(c) #=> false
def intersect?(ary)
- raise TypeError, "can't convert #{ary.class} into Array" unless ary.class == Array
+ raise TypeError, "cannot convert #{ary.class} into Array" unless ary.class == Array
hash = {}
if self.length > ary.length