aboutsummaryrefslogtreecommitdiff
path: root/src/internal/syscall
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2024-01-14 15:34:49 +1100
committerM Zhuo <mzh@golangcn.org>2024-01-23 08:29:53 +0000
commit704401ffa06c60e059c9e6e4048045b4ff42530a (patch)
treebd0f2c5c0cbefd28fe8640f1ca6515799941c9c3 /src/internal/syscall
parentadead1a93f472affa97c494ef19f2f492ee6f34a (diff)
downloadgo-704401ffa06c60e059c9e6e4048045b4ff42530a.tar.xz
fmt: don't pad strings with zeros
It's what the documentation says, and oddly it already behaves correctly for right padding, not left. (We never pad with zeros on the right.) Just don't do it. Fixes #56486 Change-Id: I2465edea93c69084e33bee0d945d5a1b85e6cd14 Reviewed-on: https://go-review.googlesource.com/c/go/+/555776 Reviewed-by: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Rob Pike <r@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/internal/syscall')
0 files changed, 0 insertions, 0 deletions