Skip to content

Commit 0dfb244

Browse files
authored
Fixing a few typos (#115)
This PR fixes a few typos across various comments in the code.
1 parent f9369af commit 0dfb244

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

Sources/AsyncAlgorithms/AsyncBufferSequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ extension AsyncSequence where Element: Sendable {
203203
///
204204
/// Use the `buffer(_:)` method to account for `AsyncSequence` types that may produce elements faster
205205
/// than they are iterated. The `createBuffer` closure returns a backing buffer for storing elements and dealing with
206-
/// behavioral charcteristics of the `buffer(_:)` algorithm.
206+
/// behavioral characteristics of the `buffer(_:)` algorithm.
207207
///
208208
/// - Parameter createBuffer: A closure that constructs a new `AsyncBuffer` actor to store buffered values.
209209
/// - Returns: An asynchronous sequence that buffers elements using the specified `AsyncBuffer`.

Sources/AsyncAlgorithms/AsyncChain2Sequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/// - Parameters:
1616
/// - s1: The first asynchronous sequence.
1717
/// - s2: The second asynchronous sequence.
18-
/// - Returns: An asynchonous sequence that iterates first over the elements of `s1`, and
18+
/// - Returns: An asynchronous sequence that iterates first over the elements of `s1`, and
1919
/// then over the elements of `s2`.
2020
@inlinable
2121
public func chain<Base1: AsyncSequence, Base2: AsyncSequence>(_ s1: Base1, _ s2: Base2) -> AsyncChain2Sequence<Base1, Base2> where Base1.Element == Base2.Element {

Sources/AsyncAlgorithms/AsyncChain3Sequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// - s1: The first asynchronous sequence.
1717
/// - s2: The second asynchronous sequence.
1818
/// - s3: The third asynchronous sequence.
19-
/// - Returns: An asynchonous sequence that iterates first over the elements of `s1`, and
19+
/// - Returns: An asynchronous sequence that iterates first over the elements of `s1`, and
2020
/// then over the elements of `s2`, and then over the elements of `s3`
2121
@inlinable
2222
public func chain<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncSequence>(_ s1: Base1, _ s2: Base2, _ s3: Base3) -> AsyncChain3Sequence<Base1, Base2, Base3> {

Sources/AsyncAlgorithms/AsyncDebounceSequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
extension AsyncSequence {
1313
/// Creates an asynchronous sequence that emits the latest element after a given quiescence period
14-
/// has elapsed by using a spectified Clock.
14+
/// has elapsed by using a specified Clock.
1515
@available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *)
1616
public func debounce<C: Clock>(for interval: C.Instant.Duration, tolerance: C.Instant.Duration? = nil, clock: C) -> AsyncDebounceSequence<Self, C> {
1717
AsyncDebounceSequence(self, interval: interval, tolerance: tolerance, clock: clock)

Sources/AsyncAlgorithms/AsyncLazySequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ extension Sequence {
2222
/// An asynchronous sequence composed from a synchronous sequence.
2323
///
2424
/// Asynchronous lazy sequences can be used to interface existing or pre-calculated
25-
/// data to interoperate with other asynchronous sequences and algoritms based on
25+
/// data to interoperate with other asynchronous sequences and algorithms based on
2626
/// asynchronous sequences.
2727
///
28-
/// This functions similarly to `LazySequence` by accessing elemetns sequentially
28+
/// This functions similarly to `LazySequence` by accessing elements sequentially
2929
/// in the iterator's `next()` method.
3030
@frozen
3131
public struct AsyncLazySequence<Base: Sequence>: AsyncSequence {

Sources/AsyncAlgorithms/AsyncMerge2Sequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ extension Merge2StateMachine.Either where Base1.Element == Base2.Element {
174174
/// An asynchronous sequence of elements from two underlying asynchronous sequences
175175
///
176176
/// In a `AsyncMerge2Sequence` instance, the *i*th element is the *i*th element
177-
/// resolved in sequential order out of the two underyling asynchronous sequences.
177+
/// resolved in sequential order out of the two underlying asynchronous sequences.
178178
/// Use the `merge(_:_:)` function to create an `AsyncMerge2Sequence`.
179179
public struct AsyncMerge2Sequence<Base1: AsyncSequence, Base2: AsyncSequence>: AsyncSequence, Sendable
180180
where

Sources/AsyncAlgorithms/AsyncMerge3Sequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ where
2323
/// An asynchronous sequence of elements from three underlying asynchronous sequences
2424
///
2525
/// In a `AsyncMerge3Sequence` instance, the *i*th element is the *i*th element
26-
/// resolved in sequential order out of the two underyling asynchronous sequences.
26+
/// resolved in sequential order out of the two underlying asynchronous sequences.
2727
/// Use the `merge(_:_:_:)` function to create an `AsyncMerge3Sequence`.
2828
public struct AsyncMerge3Sequence<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncSequence>: AsyncSequence, Sendable
2929
where
@@ -206,7 +206,7 @@ where
206206
return try await apply(task1, task2, nil)
207207

208208
// 2 terminal
209-
// these can be permuted in place since they dont need to run two or more tasks at once
209+
// these can be permuted in place since they don't need to run two or more tasks at once
210210
case (.terminal, .terminal, .idle(var iterator3)):
211211
do {
212212
if let value = try await iterator3.next() {

Sources/AsyncAlgorithms/Rethrow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
// This is a hack around the fact that we dont have generic effects
12+
// This is a hack around the fact that we don't have generic effects
1313
// alternatively in the use cases we would want `rethrows(unsafe)`
1414
// or something like that to avoid this nifty hack...
1515

Sources/AsyncSequenceValidation/WorkQueue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ struct WorkQueue: Sendable {
144144
items.append(queue.removeFirst())
145145
}
146146
queues[job] = queue
147-
// if there is nothing left in this queue then dont bother with it anymore
147+
// if there is nothing left in this queue then don't bother with it anymore
148148
if queue.count == 0 {
149149
jobsToRemove.insert(jobIndex)
150150
}

0 commit comments

Comments
 (0)