Skip to content

Commit 79cdecc

Browse files
rilliggopherbot
authored andcommitted
cmd/gofmt: fix a typo in a comment
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 <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 9955a7e commit 79cdecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/gofmt/rewrite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func match(m map[string]reflect.Value, pattern, val reflect.Value) bool {
199199
// object pointers and token positions always match
200200
return true
201201
case callExprType:
202-
// For calls, the Ellipsis fields (token.Position) must
202+
// For calls, the Ellipsis fields (token.Pos) must
203203
// match since that is how f(x) and f(x...) are different.
204204
// Check them here but fall through for the remaining fields.
205205
p := pattern.Interface().(*ast.CallExpr)

0 commit comments

Comments
 (0)