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

incorrectly warning for fmt.printf using ellipsis and indexes>1 and string, not var!, for format #46173

Closed
splace opened this issue May 14, 2021 · 1 comment

Comments

@splace
Copy link

splace commented May 14, 2021

What version of Go are you using (go version)?

1.16.4

What operating system and processor architecture are you using (go env)?

linux amd64

reproduce

  • use fmt.Printf with ellipsis
  • use indexed arguments in format
  • use first argument > 1
  • use format string directly not a variable!

https://play.golang.org/p/8Tg8K4lc2rV

What did you expect to see?

no error

What did you see instead?

error

@seankhliao
Copy link
Member

Duplicate of #34007

@seankhliao seankhliao marked this as a duplicate of #34007 May 14, 2021
@golang golang locked and limited conversation to collaborators May 14, 2022
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

3 participants