Skip to content

Commit 0df7ad2

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some typos
Change-Id: I147622770587cff1551a0be189003666463f34e3 GitHub-Last-Rev: 71b5375 GitHub-Pull-Request: #54472 Reviewed-on: https://go-review.googlesource.com/c/go/+/424154 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> Run-TryBot: Keith Randall <[email protected]> Auto-Submit: Keith Randall <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent 805305e commit 0df7ad2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/cmd/compile/internal/noder/transform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ func transformAppend(n *ir.CallExpr) ir.Node {
733733
// assignconvfn is of args[1] not required here, as the
734734
// types of args[0] and args[1] don't need to match
735735
// (They will both have an underlying type which are
736-
// slices of indentical base types, or be []byte and string.)
736+
// slices of identical base types, or be []byte and string.)
737737
// See issue 53888.
738738
return n
739739
}

src/cmd/compile/internal/typecheck/func.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func tcAppend(n *ir.CallExpr) ir.Node {
463463
// AssignConv is of args[1] not required here, as the
464464
// types of args[0] and args[1] don't need to match
465465
// (They will both have an underlying type which are
466-
// slices of indentical base types, or be []byte and string.)
466+
// slices of identical base types, or be []byte and string.)
467467
// See issue 53888.
468468
return n
469469
}

src/cmd/compile/internal/types2/check_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func delta(x, y uint) uint {
8686

8787
// parseFlags parses flags from the first line of the given source
8888
// (from src if present, or by reading from the file) if the line
89-
// starts with "//" (line comment) followed by "-" (possiby with
89+
// starts with "//" (line comment) followed by "-" (possibly with
9090
// spaces between). Otherwise the line is ignored.
9191
func parseFlags(filename string, src []byte, flags *flag.FlagSet) error {
9292
// If there is no src, read from the file.

src/go/types/check_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func eliminate(t *testing.T, errmap map[string][]string, errlist []error) {
185185

186186
// parseFlags parses flags from the first line of the given source
187187
// (from src if present, or by reading from the file) if the line
188-
// starts with "//" (line comment) followed by "-" (possiby with
188+
// starts with "//" (line comment) followed by "-" (possibly with
189189
// spaces between). Otherwise the line is ignored.
190190
func parseFlags(filename string, src []byte, flags *flag.FlagSet) error {
191191
// If there is no src, read from the file.

src/runtime/asan/asan.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void __asan_poison_go(void *addr, uintptr_t sz) {
3434
__asan_poison_memory_region(addr, sz);
3535
}
3636
37-
// Keep in sync with the defination in compiler-rt
37+
// Keep in sync with the definition in compiler-rt
3838
// https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_interface_internal.h#L41
3939
// This structure is used to describe the source location of
4040
// a place where global was defined.
@@ -44,7 +44,7 @@ struct _asan_global_source_location {
4444
int column_no;
4545
};
4646
47-
// Keep in sync with the defination in compiler-rt
47+
// Keep in sync with the definition in compiler-rt
4848
// https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_interface_internal.h#L48
4949
// So far, the current implementation is only compatible with the ASan library from version v7 to v9.
5050
// https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_init_version.h

src/runtime/mgclimit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (l *gcCPULimiterState) resetCapacity(now int64, nprocs int32) {
339339
l.unlock()
340340
}
341341

342-
// limiterEventType indicates the type of an event occuring on some P.
342+
// limiterEventType indicates the type of an event occurring on some P.
343343
//
344344
// These events represent the full set of events that the GC CPU limiter tracks
345345
// to execute its function.

0 commit comments

Comments
 (0)