mirror of https://github.com/golang/go.git
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
|
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 {
|
func (f *fmt) truncateString(s string) string {
|
||||||
if f.precPresent {
|
if f.precPresent {
|
||||||
n := f.prec
|
n := f.prec
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue