Skip to content

Commit

Permalink
cmd/gofmt: fix a typo in a comment
Browse files Browse the repository at this point in the history
Change-Id: I34b2b9f9b70e39c872d5edbbda4de0fe330211f5
GitHub-Last-Rev: 723e36e
GitHub-Pull-Request: #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>
  • Loading branch information
rillig authored and gopherbot committed Jan 4, 2023
1 parent 9955a7e commit 79cdecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/gofmt/rewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79cdecc

Please sign in to comment.