mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +00:00
fmt: use “truncateString” not “truncate” in method doc
Change-Id: If1acb6a8533a782f80c7d1f0ad5155e98e1134dd
GitHub-Last-Rev: 03384a3d99
GitHub-Pull-Request: golang/go#44375
Reviewed-on: https://go-review.googlesource.com/c/go/+/293629
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Rob Pike <r@golang.org>
Trust: Rob Pike <r@golang.org>
This commit is contained in:
parent
fedb494878
commit
3224990dad
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue