Skip to content

Commit

Permalink
Fix typo in BoundedBufferStateMachine
Browse files Browse the repository at this point in the history
  • Loading branch information
GavrilikArt committed Oct 2, 2023
1 parent cb41700 commit 6142b7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct BoundedBufferStateMachine<Base: AsyncSequence> {
mutating func shouldSuspendProducer() -> Bool {
switch state {
case .initial:
preconditionFailure("Invalid state. The task should already by started.")
preconditionFailure("Invalid state. The task should already be started.")

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

0 comments on commit 6142b7e

Please sign in to comment.