From: zfCode Date: Sat, 13 Mar 2021 18:00:30 +0000 (+0000) Subject: fmt: use “truncateString” not “truncate” in method doc X-Git-Tag: go1.17beta1~1144 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3224990dad27d5a06961a168c3760b13a6d140c1;p=gostls13.git fmt: use “truncateString” not “truncate” in method doc Change-Id: If1acb6a8533a782f80c7d1f0ad5155e98e1134dd GitHub-Last-Rev: 03384a3d99dd89d802635f7ef48ce4456ec338b0 GitHub-Pull-Request: golang/go#44375 Reviewed-on: https://go-review.googlesource.com/c/go/+/293629 Reviewed-by: Emmanuel Odeke Reviewed-by: Rob Pike Trust: Rob Pike --- diff --git a/src/fmt/format.go b/src/fmt/format.go index 4d12f82f7d..bd00e5a5e0 100644 --- a/src/fmt/format.go +++ b/src/fmt/format.go @@ -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