Skip to content

Commit

Permalink
Merge pull request felixge#11 from dongnguyenvt/pr
Browse files Browse the repository at this point in the history
create outfile
  • Loading branch information
felixge authored Nov 16, 2022
2 parents 738806d + e1b2444 commit af23080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ func main() {

var outFile *os.File
if flag.NArg() == 2 {
outFile, err = os.Open(flag.Args()[1])
outFile, err = os.Create(flag.Args()[1])
if err != nil {
log.Fatalln(err)
}
Expand Down

0 comments on commit af23080

Please sign in to comment.