Skip to content

Commit

Permalink
Merge pull request #71871 from amomchilov/grammar-fix-seq-strart-with
Browse files Browse the repository at this point in the history
Fix grammar in `starts(with:)` docs
  • Loading branch information
glessard authored Feb 26, 2024
2 parents 7b5502b + 123fd36 commit 12010d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stdlib/public/core/SequenceAlgorithms.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ extension Sequence {
/// sequence are equivalent to the elements in another sequence, using
/// the given predicate as the equivalence test.
///
/// The predicate must be a *equivalence relation* over the elements. That
/// The predicate must be an *equivalence relation* over the elements. That
/// is, for any elements `a`, `b`, and `c`, the following conditions must
/// hold:
///
Expand Down Expand Up @@ -297,7 +297,7 @@ extension Sequence {
///
/// At least one of the sequences must be finite.
///
/// The predicate must be a *equivalence relation* over the elements. That
/// The predicate must be an *equivalence relation* over the elements. That
/// is, for any elements `a`, `b`, and `c`, the following conditions must
/// hold:
///
Expand Down Expand Up @@ -407,7 +407,7 @@ extension Sequence {
public func lexicographicallyPrecedes<OtherSequence: Sequence>(
_ other: OtherSequence,
by areInIncreasingOrder: (Element, Element) throws -> Bool
) rethrows -> Bool
) rethrows -> Bool
where OtherSequence.Element == Element {
var iter1 = self.makeIterator()
var iter2 = other.makeIterator()
Expand Down Expand Up @@ -632,7 +632,7 @@ extension Sequence {
}
return accumulator
}

/// Returns the result of combining the elements of the sequence using the
/// given closure.
///
Expand Down

0 comments on commit 12010d6

Please sign in to comment.