fmt: fix %q verb documentation to say "rune literal"#78521
fmt: fix %q verb documentation to say "rune literal"#78521Herrtian wants to merge 2 commits intogolang:masterfrom
Conversation
…acter literal" The Go specification uses the term "rune literal" (not "character literal") for single-quoted literals like 'a'. Update the fmt package documentation to use the correct terminology. Fixes golang#78486
|
This PR (HEAD: b429481) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/762580. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
The Go specification uses the term "rune literal" (not "character literal") for single-quoted literals like 'a'. Update the fmt package documentation to use the correct terminology. Fixes golang#78486
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
|
This PR (HEAD: 1f65e43) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/762580. Important tips:
|
|
Message from Rob Pike: Patch Set 2: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
|
Message from Alan Donovan: Patch Set 2: Auto-Submit+1 Code-Review+2 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
|
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2026-04-05T14:04:12Z","revision":"ddc39cd31f1d3ef40612178c8d4aea695a790ca2"} Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
|
Message from Alan Donovan: Patch Set 2: -Commit-Queue (Performed by <GERRIT_ACCOUNT_60063> on behalf of <GERRIT_ACCOUNT_57259>) Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
|
Message from Go LUCI: Patch Set 2: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
|
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
|
Message from Alan Donovan: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/762580. |
The Go specification uses the term "rune literal" (not "character
literal") for single-quoted literals like 'a'. The %q verb
documentation in the fmt package uses the outdated term "character
literal". This change updates it to use the correct Go terminology.
As noted by @adonovan in #78486, %q works with rune and byte types
but not general int types (which is enforced by go vet since
Go 1.26).
Fixes #78486