From 723e36e11ee011c54d3ffc8125d0477c8eed25a0 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Wed, 4 Jan 2023 07:49:29 +0100 Subject: [PATCH] cmd/gofmt: fix typo in comment --- src/cmd/gofmt/rewrite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gofmt/rewrite.go b/src/cmd/gofmt/rewrite.go index a98c6a0cd9b483..0b7e21130905c0 100644 --- a/src/cmd/gofmt/rewrite.go +++ b/src/cmd/gofmt/rewrite.go @@ -199,7 +199,7 @@ func match(m map[string]reflect.Value, pattern, val reflect.Value) bool { // object pointers and token positions always match return true case callExprType: - // For calls, the Ellipsis fields (token.Position) must + // For calls, the Ellipsis fields (token.Pos) must // match since that is how f(x) and f(x...) are different. // Check them here but fall through for the remaining fields. p := pattern.Interface().(*ast.CallExpr)