Skip to content

Commit b485dfa

Browse files
authored
Merge pull request #214 from ruby/typofix
Typofix by misspell
2 parents 4658003 + 66e1cf0 commit b485dfa

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

lib/syntax_suggest/around_block_scan.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def scan_while
118118
end
119119

120120
# Scanning is intentionally conservative because
121-
# we have no way of rolling back an agressive block (at this time)
121+
# we have no way of rolling back an aggressive block (at this time)
122122
#
123123
# If a block was stopped for some trivial reason, (like an empty line)
124124
# but the next line would have caused it to be balanced then we
@@ -224,7 +224,7 @@ def lines
224224
@scanner.lines
225225
end
226226

227-
# Managable rspec errors
227+
# Manageable rspec errors
228228
def inspect
229229
"#<#{self.class}:0x0000123843lol >"
230230
end

lib/syntax_suggest/block_expand.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def expand_neighbors(block)
157157
end
158158
end
159159

160-
# Managable rspec errors
160+
# Manageable rspec errors
161161
def inspect
162162
"#<SyntaxSuggest::CodeBlock:0x0000123843lol >"
163163
end

lib/syntax_suggest/capture_code_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module SyntaxSuggest
2626
# they can't add extra data that's not present.
2727
#
2828
# In the case of known ambiguious cases, this class adds context
29-
# back to the ambiguitiy so the programmer has full information.
29+
# back to the ambiguity so the programmer has full information.
3030
#
3131
# Beyond handling these ambiguities, it also captures surrounding
3232
# code context information:

lib/syntax_suggest/parse_blocks_from_indent_line.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module SyntaxSuggest
88
# grabbing one that contains only an "end". In this example:
99
#
1010
# def dog
11-
# begonn # mispelled `begin`
11+
# begonn # misspelled `begin`
1212
# puts "bark"
1313
# end
1414
# end

spec/unit/block_expand_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def foo
146146
EOM
147147
end
148148

149-
it "expand until next boundry (indentation)" do
149+
it "expand until next boundary (indentation)" do
150150
source_string = <<~EOM
151151
describe "what" do
152152
Foo.call
@@ -188,7 +188,7 @@ def foo
188188
EOM
189189
end
190190

191-
it "expand until next boundry (empty lines)" do
191+
it "expand until next boundary (empty lines)" do
192192
source_string = <<~EOM
193193
describe "what" do
194194
end

spec/unit/clean_document_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ module SyntaxSuggest
139139
source = <<~'EOM'
140140
context "timezones workaround" do
141141
it "should receive a time in UTC format and return the time with the"\
142-
"office's UTC offset substracted from it" do
142+
"office's UTC offset subtracted from it" do
143143
travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
144144
office = build(:office)
145145
end
@@ -155,7 +155,7 @@ module SyntaxSuggest
155155
).to eq(<<~'EOM'.indent(2))
156156
1 context "timezones workaround" do
157157
2 it "should receive a time in UTC format and return the time with the"\
158-
3 "office's UTC offset substracted from it" do
158+
3 "office's UTC offset subtracted from it" do
159159
4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
160160
5 office = build(:office)
161161
6 end
@@ -171,7 +171,7 @@ module SyntaxSuggest
171171
).to eq(<<~'EOM')
172172
1 context "timezones workaround" do
173173
> 2 it "should receive a time in UTC format and return the time with the"\
174-
> 3 "office's UTC offset substracted from it" do
174+
> 3 "office's UTC offset subtracted from it" do
175175
4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
176176
5 office = build(:office)
177177
6 end

0 commit comments

Comments
 (0)