mirror of
https://github.com/golang/go
synced 2024-11-26 15:46:54 -07:00
all: fix some typos
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
b565476e2c
commit
71b5375983
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user