summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 09:19:39 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 09:32:42 +0900
commitdb166290088fb7d39d01f68b9860253893d4f1a7 (patch)
tree68c1b2c3e7ff00ed5cd6a214e6644a28dca22261 /range.c
parent2898367b3a1de00ca78067cc17dd4d1f8df37778 (diff)
Fixed misspellings
Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
Diffstat (limited to 'range.c')
-rw-r--r--range.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/range.c b/range.c
index f701c16e6d..b4fab53eac 100644
--- a/range.c
+++ b/range.c
@@ -1610,12 +1610,12 @@ static VALUE
range_count(int argc, VALUE *argv, VALUE range)
{
if (argc != 0) {
- /* It is odd for instace (1...).count(0) to return Infinity. Just let
+ /* It is odd for instance (1...).count(0) to return Infinity. Just let
* it loop. */
return rb_call_super(argc, argv);
}
else if (rb_block_given_p()) {
- /* Likewise it is odd for instace (1...).count {|x| x == 0 } to return
+ /* Likewise it is odd for instance (1...).count {|x| x == 0 } to return
* Infinity. Just let it loop. */
return rb_call_super(argc, argv);
}