fix: typo fixes

This commit is contained in:
Paul Waldmann
2019-02-14 20:55:08 +08:00
committed by Inanc Gumus
parent ec1fb0e322
commit 288a41adf9
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import (
) )
func main() { func main() {
if len(os.Args) < 3 { if len(os.Args) != 3 {
fmt.Println("gimme two numbers") fmt.Println("gimme two numbers")
return return
} }

View File

@ -28,6 +28,6 @@ func main() {
c = "-" c = "-"
} }
fmt.Printf("\r%s Please Wait. Processing....", c) fmt.Printf("\r%s Please Wait. Processing....", c)
time.Sleep(time.Millisecond * 150) time.Sleep(time.Millisecond * 250)
} }
} }

View File

@ -18,14 +18,14 @@ package main
// 3. I would use a short switch. // 3. I would use a short switch.
// //
// EXAMPLES // EXAMPLES
// Player wins: then randomly printone of these: // The Player wins: then randomly print one of these:
// //
// go run main.go 5 // go run main.go 5
// YOU WON // YOU WON
// go run main.go 5 // go run main.go 5
// YOU'RE AWESOME // YOU'RE AWESOME
// //
// Player loses: then randomly printone of these: // The Player loses: then randomly print one of these:
// //
// go run main.go 5 // go run main.go 5
// LOSER! // LOSER!