summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
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);
}