From e5b733570598646e9726d053db5a30114165f9d6 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sun, 15 Oct 2017 13:47:47 +1100 Subject: [PATCH] fmt: clarify wording of * flag The complainant is confused by the ambiguity of 'next' in the phrase 'next operand'. It seems clear enough to me that things are always read left to right when formatting, but to calm the waters we add a clarifying parenthetical. Fixes #22275 Change-Id: I82418c1e987db736f4bee0faa53fe715c9cde8f5 Reviewed-on: https://go-review.googlesource.com/71010 Reviewed-by: Emmanuel Odeke --- src/fmt/doc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fmt/doc.go b/src/fmt/doc.go index d1ce8c4177..375cdb4266 100644 --- a/src/fmt/doc.go +++ b/src/fmt/doc.go @@ -81,7 +81,8 @@ that is, runes. (This differs from C's printf where the units are always measured in bytes.) Either or both of the flags may be replaced with the character '*', causing their values to be - obtained from the next operand, which must be of type int. + obtained from the next operand (preceding the one to format), + which must be of type int. For most values, width is the minimum number of runes to output, padding the formatted form with spaces if necessary. -- 2.48.1