Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

govet doesn't understant * in format strings #1592

Closed
mark-summerfield opened this issue Mar 8, 2011 · 2 comments
Closed

govet doesn't understant * in format strings #1592

mark-summerfield opened this issue Mar 8, 2011 · 2 comments

Comments

@mark-summerfield
Copy link

Given the program (test.go):

package main
import "fmt"
func main() {
    fmt.Printf("%0*d\n", 5, 99)
}

: govet test.go 
test.go:4:5: wrong number of formatting directives in Printf call: 1 percent(s) for 2
args

This is clearly wrong since the format statement _requires_ 2 args.

: hg identify
c5c62aeb6267+ release/release.2011-03-07.1
@rsc
Copy link
Contributor

rsc commented Mar 8, 2011

Comment 1:

Owner changed to r...@golang.org.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Mar 8, 2011

Comment 2:

This issue was closed by revision 8138654.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants