]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix problematic comments
authorcui fliter <imcusg@gmail.com>
Fri, 11 Nov 2022 02:05:39 +0000 (10:05 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 11 Nov 2022 19:12:52 +0000 (19:12 +0000)
Change-Id: Ib6ea1bd04d9b06542ed2b0f453c718115417c62c
Reviewed-on: https://go-review.googlesource.com/c/go/+/449755
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssagen/pgen.go
src/cmd/compile/internal/types/type.go
src/cmd/go/internal/script/cmds.go
src/cmd/internal/obj/link.go
src/cmd/internal/objabi/reloctype.go
src/crypto/tls/cipher_suites.go
src/runtime/metrics.go
src/runtime/mgc.go
src/runtime/symtab.go

index 81e8d21fe9f76656a3ed097aa251e72d601d8a63..fed25794e3a2002614c967767ea04a916552f1a5 100644 (file)
@@ -525,7 +525,7 @@ func boundsABI(b int64) int {
        }
 }
 
-// arm64BitFileld is the GO type of ARM64BitField auxInt.
+// arm64BitField is the GO type of ARM64BitField auxInt.
 // if x is an ARM64BitField, then width=x&0xff, lsb=(x>>8)&0xff, and
 // width+lsb<64 for 64-bit variant, width+lsb<32 for 32-bit variant.
 // the meaning of width and lsb are instruction-dependent.
index 6b29e8369722a5d8549dc625ac2baa883daff69e..ffd51f19c74277cd61e274950aa531e38677fb79 100644 (file)
@@ -61,7 +61,7 @@ func cmpstackvarlt(a, b *ir.Name) bool {
        return a.Sym().Name < b.Sym().Name
 }
 
-// byStackvar implements sort.Interface for []*Node using cmpstackvarlt.
+// byStackVar implements sort.Interface for []*Node using cmpstackvarlt.
 type byStackVar []*ir.Name
 
 func (s byStackVar) Len() int           { return len(s) }
index 8329837a308a002c3247812b2a5acdf83f62a235..4bdbc3d931aca62d9705f77c1a6e435340c9cef2 100644 (file)
@@ -394,7 +394,7 @@ type Struct struct {
        Funarg Funarg // type of function arguments for arg struct
 }
 
-// Fnstruct records the kind of function argument
+// Funarg records the kind of function argument
 type Funarg uint8
 
 const (
index 90e7fb957087e00b62b2c9a74ec5d927f18fa067..e0eaad4c43d19c20068c89dfe5793313f2bce84b 100644 (file)
@@ -981,7 +981,7 @@ func Stop() Cmd {
                })
 }
 
-// stoperr is the sentinel error type returned by the Stop command.
+// stopError is the sentinel error type returned by the Stop command.
 type stopError struct {
        msg string
 }
index ead37085b3352016905e19950eeb1681285f2d01..80370173af4ef10d89e883b6013c4831d47c708f 100644 (file)
@@ -319,7 +319,7 @@ type Prog struct {
        Isize    uint8     // for x86 back end: size of the instruction in bytes
 }
 
-// Pos indicates whether the oprand is the source or the destination.
+// AddrPos indicates whether the operand is the source or the destination.
 type AddrPos struct {
        Addr
        Pos OperandPos
index 590eedb025c554a7720a7164a1375d482d1bc2b0..2bc7b2dd7a32cf7f902a7d7470f8cc71f590ff07 100644 (file)
@@ -242,7 +242,7 @@ const (
        // rather than the symbol's address.
        R_ADDRPOWER_TOCREL
 
-       // R_ADDRPOWER_TOCREL relocates a D-form, DS-form instruction sequence like
+       // R_ADDRPOWER_TOCREL_DS relocates a D-form, DS-form instruction sequence like
        // R_ADDRPOWER_DS but inserts the offset from the TOC to the address of the
        // relocated symbol rather than the symbol's address.
        R_ADDRPOWER_TOCREL_DS
@@ -252,7 +252,7 @@ const (
        // and the low 16 are stored in the suffix. The address is absolute.
        R_ADDRPOWER_D34
 
-       // R_ADDPOWER_PCREL34 relates a single prefixed D-form load/store/add operation.
+       // R_ADDRPOWER_PCREL34 relates a single prefixed D-form load/store/add operation.
        // All prefixed forms are D form. The resulting address is relative to the
        // PC. It is a signed 34 bit offset.
        R_ADDRPOWER_PCREL34
index 9a1fa3104b7acc512e9f8df86a2fa2adbb414dc5..04e6dfe0189b47e657b78e1a46185a33010deb3d 100644 (file)
@@ -473,7 +473,7 @@ func (f *prefixNonceAEAD) Open(out, nonce, ciphertext, additionalData []byte) ([
        return f.aead.Open(out, f.nonce[:], ciphertext, additionalData)
 }
 
-// xoredNonceAEAD wraps an AEAD by XORing in a fixed pattern to the nonce
+// xorNonceAEAD wraps an AEAD by XORing in a fixed pattern to the nonce
 // before each call.
 type xorNonceAEAD struct {
        nonceMask [aeadNonceLength]byte
index 0a255149e2ade5e942419fb987856b451215d39f..2061dc0cf0e990020ee2b0d445bd8310e8e8b6fa 100644 (file)
@@ -626,7 +626,7 @@ func (a *statAggregate) ensure(deps *statDepSet) {
        a.ensured = a.ensured.union(missing)
 }
 
-// metricValidKind is a runtime copy of runtime/metrics.ValueKind and
+// metricKind is a runtime copy of runtime/metrics.ValueKind and
 // must be kept structurally identical to that type.
 type metricKind int
 
index 69dc5433b126e2eb66db2e401c4b592181e79e49..1b057070aaf20c6b2267478b5571443e0ad7e593 100644 (file)
@@ -1223,7 +1223,7 @@ func gcBgMarkPrepare() {
        work.nwait = ^uint32(0)
 }
 
-// gcBgMarkWorker is an entry in the gcBgMarkWorkerPool. It points to a single
+// gcBgMarkWorkerNode is an entry in the gcBgMarkWorkerPool. It points to a single
 // gcBgMarkWorker goroutine.
 type gcBgMarkWorkerNode struct {
        // Unused workers are managed in a lock-free stack. This field must be first.
index f47f96dd0f9a850abebf06418df2ae7731bcabd8..dead27e5f238ace82a8b3a4146130faca8a0bc91 100644 (file)
@@ -595,7 +595,7 @@ type textsect struct {
 const minfunc = 16                 // minimum function size
 const pcbucketsize = 256 * minfunc // size of bucket in the pc->func lookup table
 
-// findfunctab is an array of these structures.
+// findfuncbucket is an array of these structures.
 // Each bucket represents 4096 bytes of the text segment.
 // Each subbucket represents 256 bytes of the text segment.
 // To find a function given a pc, locate the bucket and subbucket for