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

Commit

Permalink
Drop Sprintf in favor of Sprintln
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus committed Jan 2, 2017
1 parent bccc67c commit c15f350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
term.Write([]byte(fmt.Sprintln("Error: " + err.Error())))
continue
}
term.Write([]byte(fmt.Sprintf("%s\n", strconv.FormatFloat(res, 'G', -1, 64))))
term.Write([]byte(fmt.Sprintln(strconv.FormatFloat(res, 'G', -1, 64))))
}
}

Expand Down

0 comments on commit c15f350

Please sign in to comment.