From 189d1d231dcb1eb4445df61c2d2770f7943e65f7 Mon Sep 17 00:00:00 2001 From: Dmitry Frishbuter Date: Sat, 5 Oct 2019 21:15:02 +0600 Subject: [PATCH] Fix typos in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ```