diff --git a/main.go b/main.go index 76e33f3..f089337 100644 --- a/main.go +++ b/main.go @@ -57,9 +57,9 @@ func main() { word, err := findWord(bitmap) if err != nil { fmt.Fprintf(os.Stderr, "%s: %s\n", os.Args[0], err) + } else { + fmt.Println(word) } - - fmt.Println(word) } if err := scanner.Err(); err != nil {