diff options
Diffstat (limited to 'src/cmd/vet/doc.go')
-rw-r--r-- | src/cmd/vet/doc.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/vet/doc.go b/src/cmd/vet/doc.go index f164eaca2..eb1e436f0 100644 --- a/src/cmd/vet/doc.go +++ b/src/cmd/vet/doc.go @@ -9,6 +9,12 @@ calls whose arguments do not align with the format string. Vet uses heuristics that do not guarantee all reports are genuine problems, but it can find errors not caught by the compilers. +Its exit code is 2 for erroneous invocation of the tool, 1 if a +problem was reported, and 0 otherwise. Note that the tool does not +check every possible problem and depends on unreliable heuristics +so it should be used as guidance only, not as a firm indicator of +program correctness. + By default all checks are performed, but if explicit flags are provided, only those identified by the flags are performed. |