• Rob Pike's avatar
    cmd/vet: disable complaint about 0 flag in print · 8c1f21d9
    Rob Pike authored
    The problem is that vet complains about 0 as a Printf flag in some
    situations where fmt allows it but probably shouldn't. The two
    need to be brought in line, but it's too late in the release cycle.
    
    The situation is messy and should be resolved properly in 1.11. This
    CL is a simple fix to disable a spurious complaint for 1.10 that will be
    resolved in a more thorough way in 1.11.
    
    The workaround is just to be silent about flag 0, as suggested in
    issue 23605.
    
    Fixes #23605
    Update #23498
    
    Change-Id: Ice1a4f4d86845d70c1340a0a6430d74e5de9afd4
    Reviewed-on: https://go-review.googlesource.com/90695
    Run-TryBot: Rob Pike <r@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    8c1f21d9
print.go 22.4 KB