Skip to content

Commit e4550b9

Browse files
sato-takehirotimothy-king
authored andcommitted
go/analysis/passes/nilness: fix wrong internal code comment
I fixed wrong internal code comment. Change-Id: I1c3e383583a7a95070c56adc7b034b6874cce5d2 GitHub-Last-Rev: 9ab1372 GitHub-Pull-Request: #502 Reviewed-on: https://go-review.googlesource.com/c/tools/+/595895 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Tim King <[email protected]>
1 parent d9c6af3 commit e4550b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/analysis/passes/nilness/nilness.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func runFunc(pass *analysis.Pass, fn *ssa.Function) {
187187
// t successor learns y is nil.
188188
newFacts = expandFacts(fact{binop.Y, isnil})
189189
} else {
190-
// x is nil, y is unknown:
190+
// y is nil, x is unknown:
191191
// t successor learns x is nil.
192192
newFacts = expandFacts(fact{binop.X, isnil})
193193
}

0 commit comments

Comments
 (0)