Skip to content

Commit 8a355f0

Browse files
authored
Fix a few typos (#173)
1 parent 816cf64 commit 8a355f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AsyncAlgorithms/AsyncBufferedByteIterator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/// }
3232
///
3333
/// public func makeAsyncIterator() -> AsyncBufferedByteIterator {
34-
/// return BufferedAsyncByteIterator(capacity: 16384) { buffer in
34+
/// return AsyncBufferedByteIterator(capacity: 16384) { buffer in
3535
/// // This runs once every 16384 invocations of next()
3636
/// return try await handle.read(into: buffer)
3737
/// }
@@ -112,7 +112,7 @@ internal struct _AsyncBytesBuffer: @unchecked Sendable {
112112
do {
113113
// If two tasks have access to this iterator then the references on
114114
// the storage will be non uniquely owned. This means that any reload
115-
// must happen into it's own fresh buffer. The consumption of those
115+
// must happen into its own fresh buffer. The consumption of those
116116
// bytes between two tasks are inherently defined as potential
117117
// duplication by the nature of sending that buffer across the two
118118
// tasks - this means that the brief period in which they may be
@@ -122,7 +122,7 @@ internal struct _AsyncBytesBuffer: @unchecked Sendable {
122122
// should not be crash, but it definitely cannot be consistent.
123123
//
124124
// The unique ref check is here to prevent the potentials of a crashing
125-
// secnario.
125+
// scenario.
126126
if !isKnownUniquelyReferenced(&storage) {
127127
// The count is not mutated across invocations so the access is safe.
128128
let capacity = storage.buffer.count

0 commit comments

Comments
 (0)