1
0
mirror of https://github.com/golang/go synced 2024-09-30 00:14:36 -06:00

all: fix some typos

Change-Id: I147622770587cff1551a0be189003666463f34e3
GitHub-Last-Rev: 71b5375983
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>
This commit is contained in:
cui fliter 2022-08-16 13:43:23 +00:00 committed by Gopher Robot
parent 805305e24f
commit 0df7ad2e79
6 changed files with 7 additions and 7 deletions

View 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
}

View 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
}

View 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.

View 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.

View 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

View 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.