1
0
mirror of https://github.com/golang/go synced 2024-09-29 13:24:28 -06:00

fmt: fix an error in documentation for fmt

Original Printf("%d", hi) obviously doesn't produce
%!d(string=hi) unless somewhere before this code
block you have hi := "hi" somewhere, also this change
maintains consistency with the rest of it
This commit is contained in:
Bryan Heden 2019-02-13 20:32:32 -06:00 committed by GitHub
parent 7cf31d8f41
commit 242e9ee6af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@
description of the problem, as in these examples:
Wrong type or unknown verb: %!verb(type=value)
Printf("%d", hi): %!d(string=hi)
Printf("%d", "hi"): %!d(string=hi)
Too many arguments: %!(EXTRA type=value)
Printf("hi", "guys"): hi%!(EXTRA string=guys)
Too few arguments: %!verb(MISSING)