]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos of possessive its
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 25 Sep 2024 03:41:28 +0000 (20:41 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 25 Sep 2024 23:15:26 +0000 (23:15 +0000)
(I noticed the one mistake in hashtriemap.go and figured I'd clean up
others.)

Change-Id: I4ade424b400056f161bc6c9c2838ba1f96b1f6bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/615675
Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/escape/escape.go
src/cmd/compile/internal/types2/infer.go
src/go/types/expr.go
src/go/types/infer.go
src/internal/concurrent/hashtriemap.go
src/internal/fuzz/worker.go

index 5997d8328a9f452916d6ce37340116fb52920e48..d6f0708a7f17efab92786716ce136a7dc7193611 100644 (file)
@@ -145,7 +145,7 @@ func Batch(fns []*ir.Func, recursive bool) {
        }
 
        // We've walked the function bodies, so we've seen everywhere a
-       // variable might be reassigned or have it's address taken. Now we
+       // variable might be reassigned or have its address taken. Now we
        // can decide whether closures should capture their free variables
        // by value or reference.
        for _, closure := range b.closures {
index 219942862f17c4dc1cfd5a823ed5bf4854a53394..60862b3ab1d914fa93755bad2cb08937de191f6d 100644 (file)
@@ -404,7 +404,7 @@ func (check *Checker) infer(pos syntax.Pos, tparams []*TypeParam, targs []Type,
                                // t0 was simplified to t1.
                                // If t0 was a generic function, but the simplified signature t1 does
                                // not contain any type parameters anymore, the function is not generic
-                               // anymore. Remove it's type parameters. (go.dev/issue/59953)
+                               // anymore. Remove its type parameters. (go.dev/issue/59953)
                                // Note that if t0 was a signature, t1 must be a signature, and t1
                                // can only be a generic signature if it originated from a generic
                                // function argument. Those signatures are never defined types and
index 658de037398237b40b47a63d0bffe3ba2e9dd30d..4a4f195c327897ba8428a8c39cc450513ce7e0cc 100644 (file)
@@ -49,7 +49,7 @@ sub-expression trees are left alone except for their roots). This mechanism
 ensures that a client sees the actual (run-time) type an untyped value would
 have. It also permits type-checking of lhs shift operands "as if the shift
 were not present": when updateExprType visits an untyped lhs shift operand
-and assigns it it's final type, that type must be an integer type, and a
+and assigns it its final type, that type must be an integer type, and a
 constant lhs must be representable as an integer.
 
 When an expression gets its final type, either on the way out from rawExpr,
index 4da4513c7b5a8342778a446b2dea4337612b98d9..30e9d0093ea232229d6e25cc20d4102251de20fc 100644 (file)
@@ -407,7 +407,7 @@ func (check *Checker) infer(posn positioner, tparams []*TypeParam, targs []Type,
                                // t0 was simplified to t1.
                                // If t0 was a generic function, but the simplified signature t1 does
                                // not contain any type parameters anymore, the function is not generic
-                               // anymore. Remove it's type parameters. (go.dev/issue/59953)
+                               // anymore. Remove its type parameters. (go.dev/issue/59953)
                                // Note that if t0 was a signature, t1 must be a signature, and t1
                                // can only be a generic signature if it originated from a generic
                                // function argument. Those signatures are never defined types and
index 4f7e730d4fca2cc590c28a819bf079d3b83d2ac3..fb9223fa29467285f98f88c8def25fe9930a6082 100644 (file)
@@ -15,7 +15,7 @@ import (
 
 // HashTrieMap is an implementation of a concurrent hash-trie. The implementation
 // is designed around frequent loads, but offers decent performance for stores
-// and deletes as well, especially if the map is larger. It's primary use-case is
+// and deletes as well, especially if the map is larger. Its primary use-case is
 // the unique package, but can be used elsewhere as well.
 type HashTrieMap[K, V comparable] struct {
        root     *indirect[K, V]
index e8a74217789189c28bbef81579fe5f9c9924dd34..9ee2f27296dc3aadb245168421a0e89b1f1cca87 100644 (file)
@@ -682,7 +682,7 @@ func (ws *workerServer) serve(ctx context.Context) error {
 }
 
 // chainedMutations is how many mutations are applied before the worker
-// resets the input to it's original state.
+// resets the input to its original state.
 // NOTE: this number was picked without much thought. It is low enough that
 // it seems to create a significant diversity in mutated inputs. We may want
 // to consider looking into this more closely once we have a proper performance