forked from golang/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fmt: display contained values when formatting atomic booleans and int…
…egers * treat `atomic.{Int32,Int64,Uint32,Uint64}` values as integers when formatting, using the underlying integer value (by calling Load). This has the effect of, for example, formatting an atomic integer type containing 42 as "42", not "{{}, 42}"). * treat `atomic.Bool` values as booleans when formatting, using the contained boolean value (by calling Load). This has the effect of, for example, formatting an true atomic.Bool value containing as "true", not "{{}, 1}" or "{{} %!t(uint32=1)}" as before. Fixes golang#54731
- Loading branch information
1 parent
7393049
commit 0480723
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters