]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some typos
authorcui fliter <imcusg@gmail.com>
Tue, 16 Aug 2022 13:43:23 +0000 (13:43 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 16 Aug 2022 18:05:58 +0000 (18:05 +0000)
Change-Id: I147622770587cff1551a0be189003666463f34e3
GitHub-Last-Rev: 71b5375983820445a331c46481a2a3a44fafb760
GitHub-Pull-Request: golang/go#54472
Reviewed-on: https://go-review.googlesource.com/c/go/+/424154
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/noder/transform.go
src/cmd/compile/internal/typecheck/func.go
src/cmd/compile/internal/types2/check_test.go
src/go/types/check_test.go
src/runtime/asan/asan.go
src/runtime/mgclimit.go

index 50254e694a4e325227d41ced51c7c6455f42f464..87068a9412be105f279bfbc3cd2c491a4cf91d53 100644 (file)
@@ -733,7 +733,7 @@ func transformAppend(n *ir.CallExpr) ir.Node {
                // assignconvfn is of args[1] not required here, as the
                // types of args[0] and args[1] don't need to match
                // (They will both have an underlying type which are
-               // slices of indentical base types, or be []byte and string.)
+               // slices of identical base types, or be []byte and string.)
                // See issue 53888.
                return n
        }
index 40eab64a5434e113710bd343db99a87f5c8bee3c..70ebc0e4572b435b2c13c458d719342ef14a73ec 100644 (file)
@@ -463,7 +463,7 @@ func tcAppend(n *ir.CallExpr) ir.Node {
                // AssignConv is of args[1] not required here, as the
                // types of args[0] and args[1] don't need to match
                // (They will both have an underlying type which are
-               // slices of indentical base types, or be []byte and string.)
+               // slices of identical base types, or be []byte and string.)
                // See issue 53888.
                return n
        }
index 67540dcf2c579512f7837bc793763d21ed2a6dce..845dcb6aa9e6c51af6d0f28c846a91fdba85b493 100644 (file)
@@ -86,7 +86,7 @@ func delta(x, y uint) uint {
 
 // parseFlags parses flags from the first line of the given source
 // (from src if present, or by reading from the file) if the line
-// starts with "//" (line comment) followed by "-" (possiby with
+// starts with "//" (line comment) followed by "-" (possibly with
 // spaces between). Otherwise the line is ignored.
 func parseFlags(filename string, src []byte, flags *flag.FlagSet) error {
        // If there is no src, read from the file.
index cd149499b2de2fb616f385ef96a37e21ac901685..f73133b867664879ad33c403a54457adf109b88e 100644 (file)
@@ -185,7 +185,7 @@ func eliminate(t *testing.T, errmap map[string][]string, errlist []error) {
 
 // parseFlags parses flags from the first line of the given source
 // (from src if present, or by reading from the file) if the line
-// starts with "//" (line comment) followed by "-" (possiby with
+// starts with "//" (line comment) followed by "-" (possibly with
 // spaces between). Otherwise the line is ignored.
 func parseFlags(filename string, src []byte, flags *flag.FlagSet) error {
        // If there is no src, read from the file.
index 4359f41e3fcdf51b78b5ac1b0fcce58ea50e7cf4..3b7c0511f5dcc6d7b3e207e17eaefe2c0c02851a 100644 (file)
@@ -34,7 +34,7 @@ void __asan_poison_go(void *addr, uintptr_t sz) {
        __asan_poison_memory_region(addr, sz);
 }
 
-// Keep in sync with the defination in compiler-rt
+// Keep in sync with the definition in compiler-rt
 // https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_interface_internal.h#L41
 // This structure is used to describe the source location of
 // a place where global was defined.
@@ -44,7 +44,7 @@ struct _asan_global_source_location {
        int column_no;
 };
 
-// Keep in sync with the defination in compiler-rt
+// Keep in sync with the definition in compiler-rt
 // https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_interface_internal.h#L48
 // So far, the current implementation is only compatible with the ASan library from version v7 to v9.
 // https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_init_version.h
index d94e4716437b322259c89100b12a963ee8908009..485a59bdf71194f711a992a618468345f88b4780 100644 (file)
@@ -339,7 +339,7 @@ func (l *gcCPULimiterState) resetCapacity(now int64, nprocs int32) {
        l.unlock()
 }
 
-// limiterEventType indicates the type of an event occuring on some P.
+// limiterEventType indicates the type of an event occurring on some P.
 //
 // These events represent the full set of events that the GC CPU limiter tracks
 // to execute its function.