Skip to content

Commit 6142b7e

Browse files
committed
Fix typo in BoundedBufferStateMachine
1 parent cb41700 commit 6142b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncAlgorithms/Buffer/BoundedBufferStateMachine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct BoundedBufferStateMachine<Base: AsyncSequence> {
6464
mutating func shouldSuspendProducer() -> Bool {
6565
switch state {
6666
case .initial:
67-
preconditionFailure("Invalid state. The task should already by started.")
67+
preconditionFailure("Invalid state. The task should already be started.")
6868

6969
case .buffering(_, let buffer, .none, .none):
7070
// we are either idle or the buffer is already in use (no awaiting consumer)

0 commit comments

Comments
 (0)