From ed1e7c5cf2370fe4bcb5dfd8b6376bc8ae43e04d Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 15 Jan 2015 10:48:06 +1100 Subject: [PATCH] vet: fix documentation about recursive scanning It used to do packages only when run by the go tool, but it was fixed a while back to handle packages properly when doing a directory walk. Remove the incorrect information from the documentation. Change-Id: I961340bb84e48474c94ee03bf88f9136492c0226 Reviewed-on: https://go-review.googlesource.com/7642 Reviewed-by: Andrew Gerrand --- cmd/vet/doc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/vet/doc.go b/cmd/vet/doc.go index 2ae32d1a..e15a9758 100644 --- a/cmd/vet/doc.go +++ b/cmd/vet/doc.go @@ -21,8 +21,7 @@ vets the files named, all of which must be in the same package. By directory: go tool vet source/directory -recursively descends the directory, vetting each file in isolation. -Package-level type-checking is disabled, so the vetting is weaker. +recursively descends the directory, vetting each package it finds. Vet's 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