Skip to content

Commit df46b4c

Browse files
authored
Fix typo in Guides/Chunked.md (#277)
1 parent 07a0c1e commit df46b4c

File tree

1 file changed

+1
-1
lines changed
  • Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides

1 file changed

+1
-1
lines changed

Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Chunked.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ If both count and signal are specified, the chunking asynchronous sequence emits
213213
Like the example above, this code emits up to 1024-byte `Data` instances, but a chunk will also be emitted every second.
214214

215215
```swift
216-
let packets = bytes.chunks(ofCount: 1024 or: .repeating(every: .seconds(1)), into: Data.self)
216+
let packets = bytes.chunks(ofCount: 1024, or: .repeating(every: .seconds(1)), into: Data.self)
217217
for try await packet in packets {
218218
write(packet)
219219
}

0 commit comments

Comments
 (0)