]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some typos
authorcui fliter <imcusg@gmail.com>
Wed, 28 Sep 2022 02:34:31 +0000 (02:34 +0000)
committerRobert Griesemer <gri@google.com>
Wed, 28 Sep 2022 15:13:20 +0000 (15:13 +0000)
Change-Id: I8b28aebbb9494b2c877139a4584a5a42253e3bea
GitHub-Last-Rev: e3703fd3a50b811785df75751472aa3ab098b3d1
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>
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/typecheck/iimport.go
src/cmd/link/internal/ppc64/asm.go
src/internal/coverage/defs.go
src/net/http/request_test.go
src/os/exec/lp_linux_test.go
src/runtime/libfuzzer_amd64.s

index 8f298712186f10343a3e7ca35402ac05cfa60b25..ad46cf30da8cb3a19cee43f70517fb5491eeed45 100644 (file)
 (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)
index 533ee99c21d495c81753a6ef44a14b37651cb401..c55b4093905cd8bcde38e58b01e3ff73142dd351 100644 (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 {
index 70d2cf3f0b106bfe3e2049e5f114cd58a10c3b1c..22df49cc4989f9b26cc9349adb3d3111a143cb58 100644 (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)
                                        }
index 4ffbb91bb8f17d27be5934f3cad382fb1772d122..4a41f57efd053799699f391134b50b32245b2a3c 100644 (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.
index 0e5d86719f75b08ac7a9a71e94c81bf37c14de2a..27e9eb30eeb9bdde91e84097d252f11030de0a63 100644 (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
                }
index 5d77427d89be6bfdfaa5cd906406e75e9332bbff..7ab19602e90ee41132a985436267c39b99475e05 100644 (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() {
index 65ac7a325d9ab32c0d398b94fd73362d56d5b786..435536986b62a438614afeae51a71f7bd2a317c1 100644 (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.