[ruby/syntax_suggest] Typofix by misspell

https://github.com/ruby/syntax_suggest/commit/66e1cf0b3e
This commit is contained in:
Hiroshi SHIBATA 2023-12-25 13:07:10 +09:00 committed by git
parent ca886cd253
commit 50b783ccac
6 changed files with 10 additions and 10 deletions

View File

@ -118,7 +118,7 @@ module SyntaxSuggest
end end
# Scanning is intentionally conservative because # Scanning is intentionally conservative because
# we have no way of rolling back an agressive block (at this time) # we have no way of rolling back an aggressive block (at this time)
# #
# If a block was stopped for some trivial reason, (like an empty line) # If a block was stopped for some trivial reason, (like an empty line)
# but the next line would have caused it to be balanced then we # but the next line would have caused it to be balanced then we
@ -224,7 +224,7 @@ module SyntaxSuggest
@scanner.lines @scanner.lines
end end
# Managable rspec errors # Manageable rspec errors
def inspect def inspect
"#<#{self.class}:0x0000123843lol >" "#<#{self.class}:0x0000123843lol >"
end end

View File

@ -157,7 +157,7 @@ module SyntaxSuggest
end end
end end
# Managable rspec errors # Manageable rspec errors
def inspect def inspect
"#<SyntaxSuggest::CodeBlock:0x0000123843lol >" "#<SyntaxSuggest::CodeBlock:0x0000123843lol >"
end end

View File

@ -26,7 +26,7 @@ module SyntaxSuggest
# they can't add extra data that's not present. # they can't add extra data that's not present.
# #
# In the case of known ambiguious cases, this class adds context # In the case of known ambiguious cases, this class adds context
# back to the ambiguitiy so the programmer has full information. # back to the ambiguity so the programmer has full information.
# #
# Beyond handling these ambiguities, it also captures surrounding # Beyond handling these ambiguities, it also captures surrounding
# code context information: # code context information:

View File

@ -8,7 +8,7 @@ module SyntaxSuggest
# grabbing one that contains only an "end". In this example: # grabbing one that contains only an "end". In this example:
# #
# def dog # def dog
# begonn # mispelled `begin` # begonn # misspelled `begin`
# puts "bark" # puts "bark"
# end # end
# end # end

View File

@ -146,7 +146,7 @@ module SyntaxSuggest
EOM EOM
end end
it "expand until next boundry (indentation)" do it "expand until next boundary (indentation)" do
source_string = <<~EOM source_string = <<~EOM
describe "what" do describe "what" do
Foo.call Foo.call
@ -188,7 +188,7 @@ module SyntaxSuggest
EOM EOM
end end
it "expand until next boundry (empty lines)" do it "expand until next boundary (empty lines)" do
source_string = <<~EOM source_string = <<~EOM
describe "what" do describe "what" do
end end

View File

@ -139,7 +139,7 @@ module SyntaxSuggest
source = <<~'EOM' source = <<~'EOM'
context "timezones workaround" do context "timezones workaround" do
it "should receive a time in UTC format and return the time with the"\ it "should receive a time in UTC format and return the time with the"\
"office's UTC offset substracted from it" do "office's UTC offset subtracted from it" do
travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
office = build(:office) office = build(:office)
end end
@ -155,7 +155,7 @@ module SyntaxSuggest
).to eq(<<~'EOM'.indent(2)) ).to eq(<<~'EOM'.indent(2))
1 context "timezones workaround" do 1 context "timezones workaround" do
2 it "should receive a time in UTC format and return the time with the"\ 2 it "should receive a time in UTC format and return the time with the"\
3 "office's UTC offset substracted from it" do 3 "office's UTC offset subtracted from it" do
4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do 4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
5 office = build(:office) 5 office = build(:office)
6 end 6 end
@ -171,7 +171,7 @@ module SyntaxSuggest
).to eq(<<~'EOM') ).to eq(<<~'EOM')
1 context "timezones workaround" do 1 context "timezones workaround" do
> 2 it "should receive a time in UTC format and return the time with the"\ > 2 it "should receive a time in UTC format and return the time with the"\
> 3 "office's UTC offset substracted from it" do > 3 "office's UTC offset subtracted from it" do
4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do 4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
5 office = build(:office) 5 office = build(:office)
6 end 6 end