diff --git a/examples/goroutines/goroutines.hash b/examples/goroutines/goroutines.hash index 85df0eb..e86550b 100644 --- a/examples/goroutines/goroutines.hash +++ b/examples/goroutines/goroutines.hash @@ -1,2 +1,2 @@ -a847131d7f112172f9d5509fd3cf31aefb6d710e -RW_RSAHfj- +bfdaa0c8104c1257e6fea102fd26d476a3e8c14e +6Y8t3Yxd1LD diff --git a/public/goroutines b/public/goroutines index 9fda47d..b1af6a0 100644 --- a/public/goroutines +++ b/public/goroutines @@ -39,7 +39,7 @@ - +
package main
 
@@ -136,14 +136,13 @@ function call.

Our two function calls are running asynchronously in separate goroutines now, so execution falls through -to here. This Scanln code requires we press a key +to here. This Scanln requires we press a key before the program exits.

-
    var input string
-    fmt.Scanln(&input)
+            
    fmt.Scanln()
     fmt.Println("done")
 }