diff --git a/examples/line-filters/line-filters.go b/examples/line-filters/line-filters.go index 2edec12..a941f38 100644 --- a/examples/line-filters/line-filters.go +++ b/examples/line-filters/line-filters.go @@ -38,7 +38,7 @@ func main() { ucl := strings.ToUpper(line) if _, err = out.WriteString(ucl); err != nil { log.Println(err) - os.Exit(-1) + os.Exit(1) } // The `EOF` error is expected when we reach the @@ -50,7 +50,7 @@ func main() { // error and exit with non-zero status. default: log.Println(err) - os.Exit(-1) + os.Exit(1) } } }