summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-11-20 09:58:33 +0900
committeraycabta <aycabta@gmail.com>2019-11-20 09:58:33 +0900
commit9306602f24e5c9be4cdae5ed7e69e746ae9e175e (patch)
tree8fb79e0ecf38e40f3db1d20e8cdf8cc31811800a
parent19a310b0ac6bfc78340d37963ea2655783760bee (diff)
Replace typo "bock" with "block"
-rw-r--r--lib/irb/ruby-lex.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 586123fa38..b6db384568 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -307,7 +307,7 @@ class RubyLex
case t[2]
when 'do'
if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
- # method_with_bock do; end
+ # method_with_block do; end
indent += 1
else
# while cond do; end # also "until" or "for"
@@ -350,7 +350,7 @@ class RubyLex
case t[2]
when 'do'
if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
- # method_with_bock do; end
+ # method_with_block do; end
depth_difference += 1
else
# while cond do; end # also "until" or "for"