]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix typo in comment
authorichxxx <chen@ichxxx.cn>
Wed, 15 Dec 2021 18:52:21 +0000 (18:52 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 15 Dec 2021 19:56:22 +0000 (19:56 +0000)
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>
src/bufio/bufio_test.go
src/cmd/compile/internal/noder/reader.go
src/cmd/compile/internal/types/universe.go
src/cmd/compile/internal/types2/assignments.go
src/cmd/compile/internal/types2/typeset.go
src/cmd/go/internal/modfetch/cache.go
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt
src/go/types/assignments.go
src/go/types/typeset.go
src/testing/fuzz.go

index 4dddfa9085cc4a99aacb5702dfa7f497c82cb48c..ff3396e94693012bdd5dad047f96aa9db7bb9e60 100644 (file)
@@ -657,7 +657,7 @@ func TestWriterAppend(t *testing.T) {
                }
 
                // While not recommended, it is valid to append to a shifted buffer.
-               // This forces Write to copy the the input.
+               // This forces Write to copy the input.
                if rn.Intn(8) == 0 && cap(b) > 0 {
                        b = b[1:1:cap(b)]
                }
index 0bc9135999e0f050935e0c1558516d5a2ed19190..5d17c534c10205fafef64282fed7ae48a4aac46e 100644 (file)
@@ -2029,7 +2029,7 @@ func InlineCall(call *ir.CallExpr, fn *ir.Func, inlIndex int) *ir.InlinedCallExp
 
        // Quirk: If deadcode elimination turned a non-empty function into
        // an empty one, we need to set the position for the empty block
-       // left behind to the the inlined position for src.NoXPos, so that
+       // left behind to the inlined position for src.NoXPos, so that
        // an empty string gets added into the DWARF file name listing at
        // the appropriate index.
        if quirksMode() && len(body) == 1 {
index 54b04bda2239c142eadbed33a112f8c7f5b4215f..55ed7bd6d0c7e0aaafbddb310aebe58b955d2fc6 100644 (file)
@@ -152,7 +152,7 @@ func makeErrorInterface() *Type {
        return NewInterface(NoPkg, []*Field{method}, false)
 }
 
-// makeComparableInterface makes the the predefined "comparable" interface in the
+// makeComparableInterface makes the predefined "comparable" interface in the
 // built-in package. It has a unique name, but no methods.
 func makeComparableInterface() *Type {
        return NewInterface(NoPkg, nil, false)
index 0a85d8eb3970de621b8982e8483e851ddc4dcf01..668eeac00ef28df24798f5265ba0be7d89ee8256 100644 (file)
@@ -317,7 +317,7 @@ func (check *Checker) assignError(rhs []syntax.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, orig_rhs []syntax.Expr, returnStmt syntax.Stmt) {
        rhs, commaOk := check.exprList(orig_rhs, len(lhs) == 2 && returnStmt == nil)
 
index eaf614da6410a5cd1381a28ff1bd5bf412162ffe..cbb454aa6aa6c2472c1020fcd28e50d76e74f008 100644 (file)
@@ -167,7 +167,7 @@ func computeInterfaceTypeSet(check *Checker, pos syntax.Pos, ityp *Interface) *_
        }
 
        // 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
index c682447900fbc39a1d1ab8c21c1146c940c2f7f6..b0dae1cb3d359c4da1dd0edd6a03fd63c0ffb814 100644 (file)
@@ -642,7 +642,7 @@ func rewriteVersionList(dir string) (err error) {
        // Lock listfile when writing to it to try to avoid corruption to the file.
        // Under rare circumstances, for instance, if the system loses power in the
        // middle of a write it is possible for corrupt data to be written. This is
-       // not a problem for the go command itself, but may be an issue if the the
+       // not a problem for the go command itself, but may be an issue if the
        // cache is being served by a GOPROXY HTTP server. This will be corrected
        // the next time a new version of the module is fetched and the file is rewritten.
        // TODO(matloob): golang.org/issue/43313 covers adding a go mod verify
index 45be51f1c649cce2b8541d68b8d64300c9042db1..38ba150002ce177389fe58c950f8881f918140ce 100644 (file)
@@ -352,7 +352,7 @@ func readModGraph(ctx context.Context, pruning modPruning, roots []module.Versio
                if pruning == unpruned {
                        if _, dup := loadingUnpruned.LoadOrStore(m, nil); dup {
                                // m has already been enqueued for loading. Since unpruned loading may
-                               // follow cycles in the the requirement graph, we need to return early
+                               // follow cycles in the requirement graph, we need to return early
                                // to avoid making the load queue infinitely long.
                                return
                        }
index 3d68ef3055972e5310191f86942248817685d7d6..30effb104b49e9d12d2f2384ee2b6fa9d5c2b46f 100644 (file)
@@ -12,7 +12,7 @@ env CGO_ENABLED=1
 env GOFLAGS=-tags=netcgo  # Force net to use cgo even on Windows.
 
 
-# "runtime/cgo [runtime.test]" appears in the the test dependencies of "runtime",
+# "runtime/cgo [runtime.test]" appears in the test dependencies of "runtime",
 # because "runtime/cgo" itself depends on "runtime"
 
 go list -deps -test -compiled -f '{{if eq .ImportPath "net [runtime.test]"}}{{printf "%q" .Imports}}{{end}}' runtime
index a556e5e017cf43a61e12f0c3a16f88f4e9ff3716..fa05a1092024ba09d3dd47be6f1a73bdb85218b6 100644 (file)
@@ -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)
 
index 0f2897b8c6f730c00333bd39bd159b4741ac4a12..96f740e5cfeab299f5969d65564c559a762cb9aa 100644 (file)
@@ -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
index 4a5def1ab4136cefcb9be1584e1187a9595f25e1..17a8753ae6a654df10219f7f7dc24b8edf3dc217 100644 (file)
@@ -63,7 +63,7 @@ type InternalFuzzTarget struct {
 // for an example, and see the F.Fuzz and F.Add method documentation for
 // details.
 //
-// *F methods can only be called before (*F).Fuzz. Once the the test is
+// *F methods can only be called before (*F).Fuzz. Once the test is
 // executing the fuzz target, only (*T) methods can be used. The only *F methods
 // that are allowed in the (*F).Fuzz function are (*F).Failed and (*F).Name.
 type F struct {