all: fix some typos

Change-Id: I8b28aebbb9494b2c877139a4584a5a42253e3bea
GitHub-Last-Rev: e3703fd3a5
GitHub-Pull-Request: golang/go#55902
Reviewed-on: https://go-review.googlesource.com/c/go/+/435617
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
cui fliter 2022-09-28 02:34:31 +00:00 committed by Robert Griesemer
parent 6e1b769377
commit 190973eb60
7 changed files with 7 additions and 7 deletions

View file

@ -613,7 +613,7 @@
(BEQZ (NEG x) yes no) => (BEQZ x yes no)
(BNEZ (NEG x) yes no) => (BNEZ x yes no)
// Negate comparision with FNES/FNED.
// Negate comparison with FNES/FNED.
(BEQZ (FNES <t> x y) yes no) => (BNEZ (FEQS <t> x y) yes no)
(BNEZ (FNES <t> x y) yes no) => (BEQZ (FEQS <t> x y) yes no)
(BEQZ (FNED <t> x y) yes no) => (BNEZ (FEQD <t> x y) yes no)

View file

@ -84,7 +84,7 @@ func ImportBody(fn *ir.Func) {
// HaveInlineBody reports whether we have fn's inline body available
// for inlining.
//
// It's a function literal so that it can be overriden for
// It's a function literal so that it can be overridden for
// GOEXPERIMENT=unified.
var HaveInlineBody = func(fn *ir.Func) bool {
if fn.Inl == nil {

View file

@ -143,7 +143,7 @@ func genstubs(ctxt *ld.Link, ldr *loader.Loader) {
if r := relocs.At(i); r.Type() == objabi.ElfRelocOffset+objabi.RelocType(elf.R_PPC64_REL24) {
switch ldr.SymType(r.Sym()) {
case sym.SDYNIMPORT:
// This call goes throught the PLT, generate and call through a PLT stub.
// This call goes through the PLT, generate and call through a PLT stub.
if sym, firstUse := genpltstub(ctxt, ldr, r, s); firstUse {
stubs = append(stubs, sym)
}

View file

@ -363,7 +363,7 @@ func Round4(x int) int {
// where "numCtrs" is the number of blocks / coverable units within the
// function, "pkgid" is the unique index assigned to this package by
// the runtime, "funcid" is the index of this function within its containing
// packge, and "counterArray" stores the actual counters.
// package, and "counterArray" stores the actual counters.
//
// The counter variable itself is created not as a struct but as a flat
// array of uint32's; we then use the offsets below to index into it.

View file

@ -1207,7 +1207,7 @@ func TestRequestCookie(t *testing.T) {
t.Errorf("got %v, want %v", err, tt.expectedErr)
}
// skip if error occured.
// skip if error occurred.
if err != nil {
continue
}

View file

@ -24,7 +24,7 @@ func TestFindExecutableVsNoexec(t *testing.T) {
err := syscall.Mount("tmpfs", tmp, "tmpfs", 0, "")
if err != nil {
// Usually this means lack of CAP_SYS_ADMIN, but there might be
// other reasons, expecially in restricted test environments.
// other reasons, especially in restricted test environments.
t.Skipf("requires ability to mount tmpfs (%v)", err)
}
t.Cleanup(func() {

View file

@ -52,7 +52,7 @@ call:
// manipulating the return address so that libfuzzer's integer compare hooks
// work
// libFuzzer's compare hooks obtain the caller's address from the compiler
// builtin __builtin_return_adress. Since we invoke the hooks always
// builtin __builtin_return_address. Since we invoke the hooks always
// from the same native function, this builtin would always return the same
// value. Internally, the libFuzzer hooks call through to the always inlined
// HandleCmp and thus can't be mimicked without patching libFuzzer.