Skip to content

Commit 12010d6

Browse files
authored
Merge pull request #71871 from amomchilov/grammar-fix-seq-strart-with
Fix grammar in `starts(with:)` docs
2 parents 7b5502b + 123fd36 commit 12010d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/core/SequenceAlgorithms.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ extension Sequence {
213213
/// sequence are equivalent to the elements in another sequence, using
214214
/// the given predicate as the equivalence test.
215215
///
216-
/// The predicate must be a *equivalence relation* over the elements. That
216+
/// The predicate must be an *equivalence relation* over the elements. That
217217
/// is, for any elements `a`, `b`, and `c`, the following conditions must
218218
/// hold:
219219
///
@@ -297,7 +297,7 @@ extension Sequence {
297297
///
298298
/// At least one of the sequences must be finite.
299299
///
300-
/// The predicate must be a *equivalence relation* over the elements. That
300+
/// The predicate must be an *equivalence relation* over the elements. That
301301
/// is, for any elements `a`, `b`, and `c`, the following conditions must
302302
/// hold:
303303
///
@@ -407,7 +407,7 @@ extension Sequence {
407407
public func lexicographicallyPrecedes<OtherSequence: Sequence>(
408408
_ other: OtherSequence,
409409
by areInIncreasingOrder: (Element, Element) throws -> Bool
410-
) rethrows -> Bool
410+
) rethrows -> Bool
411411
where OtherSequence.Element == Element {
412412
var iter1 = self.makeIterator()
413413
var iter2 = other.makeIterator()
@@ -632,7 +632,7 @@ extension Sequence {
632632
}
633633
return accumulator
634634
}
635-
635+
636636
/// Returns the result of combining the elements of the sequence using the
637637
/// given closure.
638638
///

0 commit comments

Comments
 (0)