Skip to content

Commit 4cc50c5

Browse files
paulhdkczechboy0
andauthored
Update doc comment in Sources/OpenAPIRuntime/EventStreams/ServerSentEventsDecoding.swift
Co-authored-by: Honza Dvorsky <honza@apple.com>
1 parent 85f9271 commit 4cc50c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAPIRuntime/EventStreams/ServerSentEventsDecoding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extension ServerSentEventsDeserializationSequence: AsyncSequence {
6060

6161
/// A closure that determines whether the given byte chunk should be forwarded to the consumer.
6262
/// - Parameter: A byte chunk.
63-
/// - Returns: `True` until the terminating byte sequence is received.
63+
/// - Returns: `true` if the byte chunk should be forwarded, `false` if this byte chunk is the terminating sequence.
6464
let predicate: (ArraySlice<UInt8>) -> Bool
6565

6666
init(upstream: any AsyncIteratorProtocol, while predicate: @escaping ((ArraySlice<UInt8>) -> Bool)) {

0 commit comments

Comments
 (0)