aboutsummaryrefslogtreecommitdiff
path: root/src/go
diff options
context:
space:
mode:
authorichxxx <chen@ichxxx.cn>2021-12-15 18:52:21 +0000
committerIan Lance Taylor <iant@golang.org>2021-12-15 19:56:22 +0000
commit567b177949d0819169c10ba6a07ff60554eb5285 (patch)
treee77ac5372d041c6ce486cebd4cbfed0c6f5c6568 /src/go
parentb1c7703f266a2d72f80f3b55eff822ad7980ce31 (diff)
downloadgo-567b177949d0819169c10ba6a07ff60554eb5285.tar.gz
go-567b177949d0819169c10ba6a07ff60554eb5285.zip
all: fix typo in comment
Remove duplicate 'the' Change-Id: I3ed81c8d9c488662387e45580a3bcd462448ba44 GitHub-Last-Rev: 86443993b9b58c6fce4e09e283604c32ccc44cec GitHub-Pull-Request: golang/go#50017 Reviewed-on: https://go-review.googlesource.com/c/go/+/372394 Reviewed-by: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/go')
-rw-r--r--src/go/types/assignments.go2
-rw-r--r--src/go/types/typeset.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/go/types/assignments.go b/src/go/types/assignments.go
index a556e5e017..fa05a10920 100644
--- a/src/go/types/assignments.go
+++ b/src/go/types/assignments.go
@@ -313,7 +313,7 @@ func (check *Checker) assignError(rhs []ast.Expr, nvars, nvals int) {
}
// If returnStmt != nil, initVars is called to type-check the assignment
-// of return expressions, and returnStmt is the the return statement.
+// of return expressions, and returnStmt is the return statement.
func (check *Checker) initVars(lhs []*Var, origRHS []ast.Expr, returnStmt ast.Stmt) {
rhs, commaOk := check.exprList(origRHS, len(lhs) == 2 && returnStmt == nil)
diff --git a/src/go/types/typeset.go b/src/go/types/typeset.go
index 0f2897b8c6..96f740e5cf 100644
--- a/src/go/types/typeset.go
+++ b/src/go/types/typeset.go
@@ -165,7 +165,7 @@ func computeInterfaceTypeSet(check *Checker, pos token.Pos, ityp *Interface) *_T
}
// If the interface is not fully set up yet, the type set will
- // not be complete, which may lead to errors when using the the
+ // not be complete, which may lead to errors when using the
// type set (e.g. missing method). Don't compute a partial type
// set (and don't store it!), so that we still compute the full
// type set eventually. Instead, return the top type set and