Skip to content

Commit dbbb1bf

Browse files
callthingsoffgopherbot
authored andcommitted
all: correct name for comments
Change-Id: I390c380349e99ad421264b673ad7734eddb639d3 GitHub-Last-Rev: 32e849a GitHub-Pull-Request: #75905 Reviewed-on: https://go-review.googlesource.com/c/go/+/711941 Reviewed-by: Jorropo <jorropo.pgm@gmail.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Jorropo <jorropo.pgm@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
1 parent 0983090 commit dbbb1bf

File tree

20 files changed

+23
-23
lines changed

20 files changed

+23
-23
lines changed

src/cmd/compile/internal/bitvec/bv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (bv BitVec) Unset(i int32) {
9393
bv.B[i/wordBits] &^= mask
9494
}
9595

96-
// bvnext returns the smallest index >= i for which bvget(bv, i) == 1.
96+
// Next returns the smallest index >= i for which bvget(bv, i) == 1.
9797
// If there is no such index, bvnext returns -1.
9898
func (bv BitVec) Next(i int32) int32 {
9999
if i >= bv.N {

src/cmd/compile/internal/ir/expr.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ func (o Op) IsSlice3() bool {
617617
return false
618618
}
619619

620-
// A SliceHeader expression constructs a slice header from its parts.
620+
// A SliceHeaderExpr constructs a slice header from its parts.
621621
type SliceHeaderExpr struct {
622622
miniExpr
623623
Ptr Node
@@ -665,7 +665,7 @@ func NewStarExpr(pos src.XPos, x Node) *StarExpr {
665665
func (n *StarExpr) Implicit() bool { return n.flags&miniExprImplicit != 0 }
666666
func (n *StarExpr) SetImplicit(b bool) { n.flags.set(miniExprImplicit, b) }
667667

668-
// A TypeAssertionExpr is a selector expression X.(Type).
668+
// A TypeAssertExpr is a selector expression X.(Type).
669669
// Before type-checking, the type is Ntype.
670670
type TypeAssertExpr struct {
671671
miniExpr

src/cmd/compile/internal/s390x/ggen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"cmd/internal/obj/s390x"
1212
)
1313

14-
// clearLoopCutOff is the (somewhat arbitrary) value above which it is better
14+
// clearLoopCutoff is the (somewhat arbitrary) value above which it is better
1515
// to have a loop of clear instructions (e.g. XCs) rather than just generating
1616
// multiple instructions (i.e. loop unrolling).
1717
// Must be between 256 and 4096.

src/cmd/compile/internal/types/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func (t *Type) funcType() *Func {
328328
return t.extra.(*Func)
329329
}
330330

331-
// StructType contains Type fields specific to struct types.
331+
// Struct contains Type fields specific to struct types.
332332
type Struct struct {
333333
fields fields
334334

src/cmd/compile/internal/types2/object.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func (obj *TypeName) IsAlias() bool {
328328
}
329329
}
330330

331-
// A Variable represents a declared variable (including function parameters and results, and struct fields).
331+
// A Var represents a declared variable (including function parameters and results, and struct fields).
332332
type Var struct {
333333
object
334334
origin *Var // if non-nil, the Var from which this one was instantiated

src/cmd/go/internal/vet/vet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ type jsonError struct {
396396
Err string `json:"error"`
397397
}
398398

399-
// A TextEdit describes the replacement of a portion of a file.
399+
// A jsonTextEdit describes the replacement of a portion of a file.
400400
// Start and End are zero-based half-open indices into the original byte
401401
// sequence of the file, and New is the new text.
402402
type jsonTextEdit struct {
@@ -424,7 +424,7 @@ type jsonDiagnostic struct {
424424
Related []jsonRelatedInformation `json:"related,omitempty"`
425425
}
426426

427-
// A jsonRelated describes a secondary position and message related to
427+
// A jsonRelatedInformation describes a secondary position and message related to
428428
// a primary diagnostic.
429429
type jsonRelatedInformation struct {
430430
Posn string `json:"posn"` // e.g. "file.go:line:column"

src/cmd/internal/obj/x86/evex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func evexZcase(zcase uint8) bool {
165165
return zcase > Zevex_first && zcase < Zevex_last
166166
}
167167

168-
// evexSuffixBits carries instruction EVEX suffix set flags.
168+
// evexSuffix carries instruction EVEX suffix set flags.
169169
//
170170
// Examples:
171171
//

src/cmd/internal/objfile/goobj.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (f *goobjFile) pcln() (textStart uint64, symtab, pclntab []byte, err error)
227227
return 0, nil, nil, fmt.Errorf("pcln not available in go object file")
228228
}
229229

230-
// Find returns the file name, line, and function data for the given pc.
230+
// PCToLine returns the file name, line, and function data for the given pc.
231231
// Returns "",0,nil if unknown.
232232
// This function implements the Liner interface in preference to pcln() above.
233233
func (f *goobjFile) PCToLine(pc uint64) (string, int, *gosym.Func) {

src/cmd/link/internal/loader/symbolbuilder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (sb *SymbolBuilder) SetRelocAdd(i int, a int64) {
139139
sb.relocs[i].SetAdd(a)
140140
}
141141

142-
// SetRelocAdd sets the size of the 'i'-th relocation on this sym to 'sz'
142+
// SetRelocSiz sets the size of the 'i'-th relocation on this sym to 'sz'
143143
func (sb *SymbolBuilder) SetRelocSiz(i int, sz uint8) {
144144
sb.relocs[i].SetSiz(sz)
145145
}

src/crypto/internal/fips140/rsa/pkcs1v22.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func VerifyPSS(pub *PublicKey, hash hash.Hash, digest []byte, sig []byte) error
316316
return verifyPSS(pub, hash, digest, sig, pssSaltLengthAutodetect)
317317
}
318318

319-
// VerifyPSS verifies sig with RSASSA-PSS and an expected salt length.
319+
// VerifyPSSWithSaltLength verifies sig with RSASSA-PSS and an expected salt length.
320320
func VerifyPSSWithSaltLength(pub *PublicKey, hash hash.Hash, digest []byte, sig []byte, saltLength int) error {
321321
if saltLength < 0 {
322322
return errors.New("crypto/rsa: salt length cannot be negative")

0 commit comments

Comments
 (0)