Skip to content

Commit

Permalink
"a equivalence" → "an equivalence"
Browse files Browse the repository at this point in the history
  • Loading branch information
amomchilov authored Feb 25, 2024
1 parent 44c5f9f commit c835a0b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 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,6 @@ extension Sequence {
}
return accumulator
}

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

0 comments on commit c835a0b

Please sign in to comment.