Skip to content

Commit

Permalink
[ruby/irb] Update descriptions of methods
Browse files Browse the repository at this point in the history
From Reidline to Reline

Update description used in take_corresponding_syntax_to_kw_do and is_the_in_correspond_to_a_for methods

Use possessive noun correctly

Second element

ruby/irb@4fa9714d6f
  • Loading branch information
kaiquekandykoga authored and matzbot committed Oct 7, 2021
1 parent 896626f commit 80e2242
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/irb.rb
Expand Up @@ -867,7 +867,7 @@ def assignment_expression?(line)

# If the expression is invalid, Ripper.sexp should return nil which will
# result in false being returned. Any valid expression should return an
# s-expression where the second selement of the top level array is an
# s-expression where the second element of the top level array is an
# array of parsed expressions. The first element of each expression is the
# expression's type.
verbose, $VERBOSE = $VERBOSE, nil
Expand Down
3 changes: 2 additions & 1 deletion lib/irb/input-method.rb
Expand Up @@ -265,7 +265,8 @@ def inspect

class ReidlineInputMethod < InputMethod
include Reline
# Creates a new input method object using Readline

# Creates a new input method object using Reline
def initialize
IRB.__send__(:set_encoding, Reline.encoding_system_needs.name, override: false)
super
Expand Down
4 changes: 2 additions & 2 deletions lib/irb/ruby-lex.rb
Expand Up @@ -477,7 +477,7 @@ def is_method_calling?(tokens, index)

def take_corresponding_syntax_to_kw_do(tokens, index)
syntax_of_do = nil
# Finding a syntax correnponding to "do".
# Finding a syntax corresponding to "do".
index.downto(0) do |i|
tk = tokens[i]
# In "continue", the token isn't the corresponding syntax to "do".
Expand Down Expand Up @@ -508,7 +508,7 @@ def take_corresponding_syntax_to_kw_do(tokens, index)

def is_the_in_correspond_to_a_for(tokens, index)
syntax_of_in = nil
# Finding a syntax correnponding to "do".
# Finding a syntax corresponding to "do".
index.downto(0) do |i|
tk = tokens[i]
# In "continue", the token isn't the corresponding syntax to "do".
Expand Down

0 comments on commit 80e2242

Please sign in to comment.