Found by codespell.
Change-Id: I2ebefbbbc8eacf9bc83051407519fa8fd5e4495f
GitHub-Last-Rev:
9cc550f3dbd7c85194a58fd6858507db3e2962a9
GitHub-Pull-Request: golang/go#65346
Reviewed-on: https://go-review.googlesource.com/c/go/+/559095
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
}
// stateForList walks through a list of statements and computes the
-// state/diposition for the entire list as a whole, as well
+// state/disposition for the entire list as a whole, as well
// as updating disposition of intermediate nodes.
func (ffa *funcFlagsAnalyzer) stateForList(list ir.Nodes) pstate {
st := psTop
This directory holds small tests and benchmarks of code
generated by the compiler. This code is not for importing,
-and the tests are intended to verify that specific optimzations
+and the tests are intended to verify that specific optimizations
are applied and correct.
}
// Usually desc is already p.Desc(), but if not, signal cmdError.Error to
- // add a line explicitly metioning the import path.
+ // add a line explicitly mentioning the import path.
needsPath := importPath != "" && p != nil && desc != p.Desc()
err := &cmdError{desc, out, importPath, needsPath}
// that relocations can target them with smaller addends.
// On Windows, we only get 21 bits, again (presumably) signed.
// Also, on Windows (always) and Darwin (for very large binaries), the external
- // linker does't support CALL relocations with addend, so we generate "label"
+ // linker doesn't support CALL relocations with addend, so we generate "label"
// symbols for functions of which we can target the middle (Duff's devices).
if !ctxt.IsDarwin() && !ctxt.IsWindows() || !ctxt.IsExternal() {
return
// Figure out the schedule.
sched := ldr.MakeSymbolBuilder(symName)
- sched.SetType(sym.SNOPTRDATA) // Could be SRODATA, but see isue 58857.
+ sched.SetType(sym.SNOPTRDATA) // Could be SRODATA, but see issue 58857.
for !h.empty() {
// Pick the lexicographically first initializable package.
s := h.pop(ldr)
if ok {
t.Errorf("%v: oid.toASN1OID() unexpected success", v.raw)
} else {
- t.Errorf("%v: oid.toASN1OID() unexpected fauilure", v.raw)
+ t.Errorf("%v: oid.toASN1OID() unexpected failure", v.raw)
}
continue
}
if ARM64.HasCPUID {
midr := getMIDR()
part_num := uint16((midr >> 4) & 0xfff)
- implementor := byte((midr >> 24) & 0xff)
+ implementer := byte((midr >> 24) & 0xff)
// d0c - NeoverseN1
// d40 - NeoverseV1
// d49 - NeoverseN2
// d4f - NeoverseV2
- if implementor == 'A' && (part_num == 0xd0c || part_num == 0xd40 ||
+ if implementer == 'A' && (part_num == 0xd0c || part_num == 0xd40 ||
part_num == 0xd49 || part_num == 0xd4f) {
ARM64.IsNeoverse = true
}
throw("invalid user arena span size")
}
- // Mark the region as free to various santizers immediately instead
+ // Mark the region as free to various sanitizers immediately instead
// of handling them at sweep time.
if raceenabled {
racefree(unsafe.Pointer(s.base()), s.elemsize)
var status _C_int
var r _Pid_t
err = ERESTART
- // AIX wait4 may return with ERESTART errno, while the processus is still
+ // AIX wait4 may return with ERESTART errno, while the process is still
// active.
for err == ERESTART {
r, err = wait4(_Pid_t(pid), &status, options, rusage)
if err != nil {
return err
}
- // When using VOLUME_NAME_DOS, the path is always pefixed by "\\?\".
+ // When using VOLUME_NAME_DOS, the path is always prefixed by "\\?\".
// That prefix tells the Windows APIs to disable all string parsing and to send
// the string that follows it straight to the file system.
// Although SetCurrentDirectory and GetCurrentDirectory do support the "\\?\" prefix,