]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/fix: rename confusing boolean
authorRuss Cox <rsc@golang.org>
Mon, 29 Jun 2020 18:10:24 +0000 (14:10 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 12 Oct 2020 18:31:22 +0000 (18:31 +0000)
("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 <rsc@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/fix/gotypes.go

index 8a4019cc8caa88f72b0aedbc7f9a472713e83e1c..031f85c9cc5c18ebf3ea1779ebeddfcbcc86b789 100644 (file)
@@ -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 {