Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
86aad668
Commit
86aad668
authored
Jan 07, 2013
by
David Symonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/vet: %#q is a valid format (uses raw quotes).
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/7057051
parent
a091d2e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/cmd/vet/print.go
src/cmd/vet/print.go
+2
-1
No files found.
src/cmd/vet/print.go
View file @
86aad668
...
...
@@ -208,7 +208,7 @@ var printVerbs = []printVerb{
{
'G'
,
numFlag
},
{
'o'
,
sharpNumFlag
},
{
'p'
,
"-#"
},
{
'q'
,
" -+.0"
},
{
'q'
,
" -+.0
#
"
},
{
's'
,
" -+.0"
},
{
't'
,
"-"
},
{
'T'
,
"-"
},
...
...
@@ -287,6 +287,7 @@ func BadFunctionUsedInTests() {
fmt
.
Printf
(
"%.*d"
,
3
,
3
)
// correct
fmt
.
Printf
(
"%.*d"
,
3
,
3
,
3
)
// ERROR "wrong number of args in Printf call"
fmt
.
Printf
(
"%q %q"
,
multi
()
...
)
// ok
fmt
.
Printf
(
"%#q"
,
`blah`
)
// ok
printf
(
"now is the time"
,
"buddy"
)
// ERROR "no formatting directive"
Printf
(
"now is the time"
,
"buddy"
)
// ERROR "no formatting directive"
Printf
(
"hi"
)
// ok
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment