mirror of
https://github.com/golang/go
synced 2024-11-23 22:00:11 -07: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:
parent
7cf31d8f41
commit
242e9ee6af
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user