From 3224990dad27d5a06961a168c3760b13a6d140c1 Mon Sep 17 00:00:00 2001 From: zfCode Date: Sat, 13 Mar 2021 18:00:30 +0000 Subject: [PATCH] =?UTF-8?q?fmt:=20use=20=E2=80=9CtruncateString=E2=80=9D?= =?UTF-8?q?=20not=20=E2=80=9Ctruncate=E2=80=9D=20in=20method=20doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/fmt/format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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