diff --git a/README.md b/README.md index 1b0bca5..7814f32 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ let x1 = chan.read() /// But if we read from an empty Channel the read blocks until we write to the Channel again. DispatchQueue.global().asyncAfter(deadline: .now() + .seconds(1)) { - chan.write(2) // Causes the read to suceed and unblocks the reading thread. + chan.write(2) // Causes the read to succeed and unblocks the reading thread. } let x2 = chan.read() // Blocks until the dispatch block is executed and the Channel becomes non-empty. @@ -79,7 +79,7 @@ counter.put(0) /// Empties the MVar. If we just wanted the value without emptying it, we would use /// `read()` instead. /// -/// Because our take occured after the put, all of the modifications we made before will +/// Because our take occurred after the put, all of the modifications we made before will /// complete before we read the final value. print(counter.take()) // 3 ```