Skip to content

Commit

Permalink
Fix typos (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 authored Feb 7, 2024
1 parent 9dd88e5 commit 9e3900b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Guides/Keyed.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Calling `keyed(by:)` is an O(_n_) operation.

#### Alternative names

Kotlin's `associatedBy` naming is a good alterative, and matches the past tense of [Swift's API Design Guidelines](https://www.swift.org/documentation/api-design-guidelines/), though perhaps we'd spell it `associated(by:)`.
Kotlin's `associatedBy` naming is a good alternative, and matches the past tense of [Swift's API Design Guidelines](https://www.swift.org/documentation/api-design-guidelines/), though perhaps we'd spell it `associated(by:)`.

#### Customization points

Expand Down
2 changes: 1 addition & 1 deletion Sources/Algorithms/Documentation.docc/MinAndMax.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ or a specific number of elements at the minimum and maximum.
- ``Swift/Sequence/max(count:sortedBy:)``
- ``Swift/Collection/max(count:sortedBy:)``

### Finding the Minimum and Maximum Elements Simulataneously
### Finding the Minimum and Maximum Elements Simultaneously

- ``Swift/Sequence/minAndMax()``
- ``Swift/Sequence/minAndMax(by:)``
Expand Down
2 changes: 1 addition & 1 deletion Sources/Algorithms/Split.swift
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ extension SplitCollection: Collection {
var subsequenceStart = i.baseRange.upperBound
if subsequenceStart < base.endIndex {
// If we're not already at the end of the base collection, the previous
// susequence ended with a separator. Start searching for the next
// subsequence ended with a separator. Start searching for the next
// subsequence at the following element.
subsequenceStart = base.index(after: i.baseRange.upperBound)
}
Expand Down

0 comments on commit 9e3900b

Please sign in to comment.