From 6805c6cdb821c6aa710b2fc7ab0b7e1a809ba224 Mon Sep 17 00:00:00 2001 From: Bharath Ram Hariharan Date: Thu, 4 Jan 2018 14:44:36 -0500 Subject: [PATCH] removal of unwanted variable --- examples/goroutines/goroutines.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/goroutines/goroutines.go b/examples/goroutines/goroutines.go index 88329e6..36a7207 100644 --- a/examples/goroutines/goroutines.go +++ b/examples/goroutines/goroutines.go @@ -32,7 +32,6 @@ func main() { // separate goroutines now, so execution falls through // to here. This `Scanln` code requires we press a key // before the program exits. - var input string - fmt.Scanln(&input) + fmt.Scanln() fmt.Println("done") }