diff --git a/go/analysis/passes/nilness/nilness.go b/go/analysis/passes/nilness/nilness.go index c4999f7a9db..6a78451695b 100644 --- a/go/analysis/passes/nilness/nilness.go +++ b/go/analysis/passes/nilness/nilness.go @@ -162,11 +162,11 @@ func runFunc(pass *analysis.Pass, fn *ssa.Function) { var newFacts facts if xnil == isnil { // x is nil, y is unknown: - // t successor learns y is nil. + // t successor learns x is nil. newFacts = expandFacts(fact{binop.Y, isnil}) } else { - // x is nil, y is unknown: - // t successor learns x is nil. + // y is nil, x is unknown: + // t successor learns y is nil. newFacts = expandFacts(fact{binop.X, isnil}) }