diff options
author | KaĆque Kandy Koga <[email protected]> | 2021-10-05 14:44:22 -0300 |
---|---|---|
committer | git <[email protected]> | 2021-10-07 23:55:54 +0900 |
commit | 80e2242da6c4d7f1760cb08af72140e178642639 (patch) | |
tree | 36e8397af45a92edc7b2095d345fb30fda163047 | |
parent | 896626fa02f00831de5db2e3e75aa349a5a84102 (diff) |
[ruby/irb] Update descriptions of methods
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
https://github.com/ruby/irb/commit/4fa9714d6f
-rw-r--r-- | lib/irb.rb | 2 | ||||
-rw-r--r-- | lib/irb/input-method.rb | 3 | ||||
-rw-r--r-- | lib/irb/ruby-lex.rb | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index f54069b921..6b296448db 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -867,7 +867,7 @@ module IRB # 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 diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index c91a99b561..d65c0308c6 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -265,7 +265,8 @@ module IRB 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 diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index f0c056e297..d7ac17bd79 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -477,7 +477,7 @@ class RubyLex 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". @@ -508,7 +508,7 @@ class RubyLex 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". |