Skip to content

Commit

Permalink
various: fix miscellaneous typos
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <[email protected]>
  • Loading branch information
p-linnane authored and halostatue committed Feb 16, 2024
1 parent 1086992 commit f7a08c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ will permit you to do:
$ bundle install
```

to get the development dependencies. If you aleady have `hoe` installed, you
to get the development dependencies. If you already have `hoe` installed, you
can accomplish the same thing with:

```sh
Expand Down Expand Up @@ -106,6 +106,7 @@ Thanks to everyone else who has contributed code or bug reports to Diff::LCS:
- Myron Marston
- Nicolas Leger
- Oleg Orlov
- Patrick Linnane
- Paul Kunysch
- Pete Higgins
- Peter Goldstein
Expand Down
3 changes: 3 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## NEXT / YYYY-MM-DD

- Patrick Linnane fixed various minor typos. [#93][]

- Mark Young added a Changelog link to the RubyGems metadata. [#92][]

## 1.5.1 / 2024-01-31
Expand Down Expand Up @@ -427,6 +429,7 @@
[#90]: https://github.com/halostatue/diff-lcs/pull/90
[#91]: https://github.com/halostatue/diff-lcs/issues/91
[#92]: https://github.com/halostatue/diff-lcs/pull/92
[#93]: https://github.com/halostatue/diff-lcs/pull/93
[rspec/rspec-expectations#200]: https://github.com/rspec/rspec-expectations/pull/200
[rspec/rspec-expectations#219]: https://github.com/rspec/rspec-expectations/issues/219
[rspec/rspec-expectations#238]: https://github.com/rspec/rspec-expectations/issues/238
Expand Down
6 changes: 3 additions & 3 deletions lib/diff/lcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def sdiff(seq1, seq2, callbacks = nil, &block) # :yields: diff changes
#
# The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>, and
# <tt>callbacks#discard_b</tt> are invoked with an event comprising the
# action ("=", "+", or "-", respectively), the indicies +i+ and +j+, and the
# action ("=", "+", or "-", respectively), the indexes +i+ and +j+, and the
# elements <tt>A[i]</tt> and <tt>B[j]</tt>. Return values are discarded by
# #traverse_sequences.
#
Expand Down Expand Up @@ -465,7 +465,7 @@ def traverse_sequences(seq1, seq2, callbacks = Diff::LCS::SequenceCallbacks) # :
# The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>,
# <tt>callbacks#discard_b</tt>, and <tt>callbacks#change</tt> are invoked
# with an event comprising the action ("=", "+", "-", or "!", respectively),
# the indicies +i+ and +j+, and the elements <tt>A[i]</tt> and <tt>B[j]</tt>.
# the indexes +i+ and +j+, and the elements <tt>A[i]</tt> and <tt>B[j]</tt>.
# Return values are discarded by #traverse_balanced.
#
# === Context
Expand All @@ -482,7 +482,7 @@ def traverse_balanced(seq1, seq2, callbacks = Diff::LCS::BalancedCallbacks)

# Process all the lines in the match vector.
loop do
# Find next match indices +ma+ and +mb+
# Find next match indexes +ma+ and +mb+
loop do
ma += 1
break unless ma < matches.size && matches[ma].nil?
Expand Down

0 comments on commit f7a08c6

Please sign in to comment.