os.Exit(1) to return

This commit is contained in:
Mihalis Tsoukalos 2019-03-23 21:44:33 +02:00
commit 25bb6e6f2d

View file

@ -53,7 +53,7 @@ func third(in <-chan int) {
func main() {
if len(os.Args) != 3 {
fmt.Println("Need two integer parameters!")
os.Exit(1)
return
}
n1, _ := strconv.Atoi(os.Args[1])