diff options
author | Roland Illig <roland.illig@gmx.de> | 2023-01-04 06:59:03 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-01-04 18:15:30 +0000 |
commit | 79cdecc8522e37d2eac5592c12459cd95ff92171 (patch) | |
tree | c372bf1b97568c4a9a6fd7ebdce608c3c9c48f23 | |
parent | 9955a7e9bb40d28502fbb8fd6ef1f2f10e18a519 (diff) | |
download | go-git-79cdecc8522e37d2eac5592c12459cd95ff92171.tar.gz |
cmd/gofmt: fix a typo in a comment
Change-Id: I34b2b9f9b70e39c872d5edbbda4de0fe330211f5
GitHub-Last-Rev: 723e36e11ee011c54d3ffc8125d0477c8eed25a0
GitHub-Pull-Request: golang/go#57566
Reviewed-on: https://go-review.googlesource.com/c/go/+/460457
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
-rw-r--r-- | src/cmd/gofmt/rewrite.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gofmt/rewrite.go b/src/cmd/gofmt/rewrite.go index a98c6a0cd9..0b7e211309 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) |