os.Exit(1) to return
This commit is contained in:
parent
078960b971
commit
25bb6e6f2d
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue