mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
fix fmt/format.go truncateString comment: truncate -> truncateString
This commit is contained in:
parent
fca94ab3ab
commit
03384a3d99
|
@ -320,7 +320,7 @@ func (f *fmt) fmtInteger(u uint64, base int, isSigned bool, verb rune, digits st
|
|||
f.zero = oldZero
|
||||
}
|
||||
|
||||
// truncate truncates the string s to the specified precision, if present.
|
||||
// truncateString truncates the string s to the specified precision, if present.
|
||||
func (f *fmt) truncateString(s string) string {
|
||||
if f.precPresent {
|
||||
n := f.prec
|
||||
|
|
Loading…
Reference in a new issue