Skip to content

Commit 9e3900b

Browse files
authored
Fix typos (apple#222)
1 parent 9dd88e5 commit 9e3900b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Guides/Keyed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Calling `keyed(by:)` is an O(_n_) operation.
7171

7272
#### Alternative names
7373

74-
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:)`.
74+
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:)`.
7575

7676
#### Customization points
7777

Sources/Algorithms/Documentation.docc/MinAndMax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ or a specific number of elements at the minimum and maximum.
1616
- ``Swift/Sequence/max(count:sortedBy:)``
1717
- ``Swift/Collection/max(count:sortedBy:)``
1818

19-
### Finding the Minimum and Maximum Elements Simulataneously
19+
### Finding the Minimum and Maximum Elements Simultaneously
2020

2121
- ``Swift/Sequence/minAndMax()``
2222
- ``Swift/Sequence/minAndMax(by:)``

Sources/Algorithms/Split.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ extension SplitCollection: Collection {
512512
var subsequenceStart = i.baseRange.upperBound
513513
if subsequenceStart < base.endIndex {
514514
// If we're not already at the end of the base collection, the previous
515-
// susequence ended with a separator. Start searching for the next
515+
// subsequence ended with a separator. Start searching for the next
516516
// subsequence at the following element.
517517
subsequenceStart = base.index(after: i.baseRange.upperBound)
518518
}

0 commit comments

Comments
 (0)