Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #11 from Luit/master
Browse files Browse the repository at this point in the history
Have EOF insert a newline before returning
  • Loading branch information
alfredxing committed Feb 18, 2015
2 parents 42c80d3 + 33f17cb commit 252e9a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func main() {
if err != nil {
if err == io.EOF {
// Quit without error on Ctrl^D
fmt.Println()
break
}
panic(err)
Expand Down

0 comments on commit 252e9a0

Please sign in to comment.