diff options
author | Russ Cox <rsc@golang.org> | 2020-06-29 14:10:24 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2020-10-12 18:31:22 +0000 |
commit | 2f4368c174f616b6623e66ca4c84e701d209fa4f (patch) | |
tree | 4ce70f78f30b71273d939295998ac3b3e1ec4c2b /src/cmd/fix | |
parent | 09833da6b4cfb494ba61a398ab2063ab016d3890 (diff) | |
download | go-2f4368c174f616b6623e66ca4c84e701d209fa4f.tar.gz go-2f4368c174f616b6623e66ca4c84e701d209fa4f.zip |
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 <rsc@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/fix')
-rw-r--r-- | src/cmd/fix/gotypes.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |