From: Russ Cox Date: Mon, 29 Jun 2020 18:10:24 +0000 (-0400) Subject: cmd/fix: rename confusing boolean X-Git-Tag: go1.16beta1~775 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2f4368c174f616b6623e66ca4c84e701d209fa4f;p=gostls13.git cmd/fix: rename confusing boolean ("truth" says nothing about what is true. This boolean tracks whether the file was fixed.) Change-Id: I29bb80c4fad3ca7f2ae96e50e16f6cde484b374f Reviewed-on: https://go-review.googlesource.com/c/go/+/240556 Trust: Russ Cox Reviewed-by: Jay Conrod --- diff --git a/src/cmd/fix/gotypes.go b/src/cmd/fix/gotypes.go index 8a4019cc8c..031f85c9cc 100644 --- a/src/cmd/fix/gotypes.go +++ b/src/cmd/fix/gotypes.go @@ -21,11 +21,11 @@ var gotypesFix = fix{ } func gotypes(f *ast.File) bool { - truth := fixGoTypes(f) + fixed := fixGoTypes(f) if fixGoExact(f) { - truth = true + fixed = true } - return truth + return fixed } func fixGoTypes(f *ast.File) bool {