From d09ae18eb6c367f1c4498df6e5eca11c94403d5b Mon Sep 17 00:00:00 2001 From: thetnaingtn Date: Wed, 11 Oct 2023 21:10:01 +0700 Subject: [PATCH] fix: spelling --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 77862d0..a46f8bf 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1672,7 +1672,7 @@ ch3 <- 1 // non-blocking ch3 <- 2 // blocking ``` There is no guarantee that a receiver goroutine will receive a message before producer goroutine continue its execution. -When considering the channel size, we should choose 1 as a default channel size, expect for the following cases: +When considering the channel size, we should choose 1 as a default channel size, except for the following cases: * When a fixed number of worker goroutines send a data to a shared channel. * When using channel for rate-limiting problems. Other than the above mentioned scenarios, you should have a good reason to specify a channel size other than one for buffered channels.