Skip to content

Commit 723e36e

Browse files
authored
cmd/gofmt: fix typo in comment
1 parent 9955a7e commit 723e36e

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)