From 3c3277aab2d0df7eace325a181ccbf140acffcd3 Mon Sep 17 00:00:00 2001 From: nicholasxjy Date: Thu, 16 Dec 2021 22:38:12 +0800 Subject: [PATCH] fix: fix incorrect result output of closing-channels example --- examples/closing-channels/closing-channels.sh | 6 +++--- public/closing-channels | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/closing-channels/closing-channels.sh b/examples/closing-channels/closing-channels.sh index 013f8a8..0eaee06 100644 --- a/examples/closing-channels/closing-channels.sh +++ b/examples/closing-channels/closing-channels.sh @@ -1,11 +1,11 @@ $ go run closing-channels.go sent job 1 -received job 1 sent job 2 -received job 2 sent job 3 -received job 3 sent all jobs +received job 1 +received job 2 +received job 3 received all jobs # The idea of closed channels leads naturally to our next diff --git a/public/closing-channels b/public/closing-channels index e4c94f5..3f84ebf 100644 --- a/public/closing-channels +++ b/public/closing-channels @@ -155,12 +155,12 @@ we saw earlier.

$ go run closing-channels.go 
 sent job 1
-received job 1
 sent job 2
-received job 2
 sent job 3
-received job 3
 sent all jobs
+received job 1
+received job 2
+received job 3
 received all jobs