Skip to content

Commit 0f175bb

Browse files
committed
Typos
1 parent 451ad3f commit 0f175bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ func main() {
183183
// Use defer to catch cancellation
184184
defer func() {
185185
if r := recover(); r != nil {
186-
fmt.Printf("Coroutine was cancelled: %v\n", r)
186+
fmt.Printf("Coroutine was canceled: %v\n", r)
187187
}
188188
}()
189189

190190
// Yield a value
191191
yield("before cancel")
192192

193-
// This will never be reached if the coroutine is cancelled
194-
fmt.Println("This won't be executed if cancelled")
193+
// This will never be reached if the coroutine is canceled
194+
fmt.Println("This won't be executed if canceled")
195195
return "completed"
196196
})
197197

@@ -207,7 +207,7 @@ func main() {
207207
func() {
208208
defer func() {
209209
if r := recover(); r != nil {
210-
fmt.Printf("Panic when resuming cancelled coroutine: %v\n", r)
210+
fmt.Printf("Panic when resuming canceled coroutine: %v\n", r)
211211
}
212212
}()
213213
resume(1)

0 commit comments

Comments
 (0)