Skip to content

Commit 0d018b4

Browse files
cuishuanggopherbot
authored andcommitted
all: fix field names
Change-Id: I3ad7a50707486ebdbbd676b3581df6e3ed0fd3a1 Reviewed-on: https://go-review.googlesource.com/c/go/+/543476 Auto-Submit: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: shuang cui <[email protected]>
1 parent 0c7e5d3 commit 0d018b4

File tree

9 files changed

+13
-12
lines changed

9 files changed

+13
-12
lines changed

src/cmd/compile/internal/pgo/irgraph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ type Profile struct {
129129
// the percentage threshold for hot/cold partitioning.
130130
TotalWeight int64
131131

132-
// EdgeMap contains all unique call edges in the profile and their
132+
// NamedEdgeMap contains all unique call edges in the profile and their
133133
// edge weight.
134134
NamedEdgeMap NamedEdgeMap
135135

src/cmd/compile/internal/ssa/func.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type Func struct {
6464

6565
// RegArgs is a slice of register-memory pairs that must be spilled and unspilled in the uncommon path of function entry.
6666
RegArgs []Spill
67-
// AuxCall describing parameters and results for this function.
67+
// OwnAux describes parameters and results for this function.
6868
OwnAux *AuxCall
6969

7070
freeValues *Value // free Values linked by argstorage[0]. All other fields except ID are 0/nil.

src/cmd/compile/internal/ssa/prove.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ func (d domain) String() string {
100100
}
101101

102102
type pair struct {
103-
v, w *Value // a pair of values, ordered by ID.
103+
// a pair of values, ordered by ID.
104104
// v can be nil, to mean the zero value.
105105
// for booleans the zero value (v == nil) is false.
106-
d domain
106+
v, w *Value
107+
d domain
107108
}
108109

109110
// fact is a pair plus a relation for that pair.
@@ -165,7 +166,7 @@ type factsTable struct {
165166
facts map[pair]relation // current known set of relation
166167
stack []fact // previous sets of relations
167168

168-
// order is a couple of partial order sets that record information
169+
// order* is a couple of partial order sets that record information
169170
// about relations between SSA values in the signed and unsigned
170171
// domain.
171172
orderS *poset

src/cmd/go/internal/modget/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type query struct {
5555
// path.
5656
matchWildcard func(path string) bool
5757

58-
// canMatchWildcard, if non-nil, reports whether the module with the given
58+
// canMatchWildcardInModule, if non-nil, reports whether the module with the given
5959
// path could lexically contain a package matching pattern, which must be a
6060
// wildcard.
6161
canMatchWildcardInModule func(mPath string) bool

src/database/sql/sql.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,9 +1979,9 @@ type Conn struct {
19791979
// Once done, all operations fail with ErrConnDone.
19801980
done atomic.Bool
19811981

1982-
// releaseConn is a cache of c.closemuRUnlockCondReleaseConn
1982+
releaseConnOnce sync.Once
1983+
// releaseConnCache is a cache of c.closemuRUnlockCondReleaseConn
19831984
// to save allocations in a call to grabConn.
1984-
releaseConnOnce sync.Once
19851985
releaseConnCache releaseConn
19861986
}
19871987

src/go/internal/gcimporter/ureader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ type readerDict struct {
118118
// tparams is a slice of the constructed TypeParams for the element.
119119
tparams []*types.TypeParam
120120

121-
// devived is a slice of types derived from tparams, which may be
121+
// derived is a slice of types derived from tparams, which may be
122122
// instantiated while reading the current element.
123123
derived []derivedInfo
124124
derivedTypes []types.Type // lazily instantiated from derived

src/go/parser/parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ type x int // comment
573573
var parseDepthTests = []struct {
574574
name string
575575
format string
576-
// multiplier is used when a single statement may result in more than one
576+
// parseMultiplier is used when a single statement may result in more than one
577577
// change in the depth level, for instance "1+(..." produces a BinaryExpr
578578
// followed by a UnaryExpr, which increments the depth twice. The test
579579
// case comment explains which nodes are triggering the multiple depth

src/runtime/mgcscavenge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ type scavengerState struct {
307307
// See sleepRatio for more details.
308308
sleepController piController
309309

310-
// cooldown is the time left in nanoseconds during which we avoid
310+
// controllerCooldown is the time left in nanoseconds during which we avoid
311311
// using the controller and we hold sleepRatio at a conservative
312312
// value. Used if the controller's assumptions fail to hold.
313313
controllerCooldown int64

src/runtime/runtime2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ type schedt struct {
857857
sysmonwait atomic.Bool
858858
sysmonnote note
859859

860-
// safepointFn should be called on each P at the next GC
860+
// safePointFn should be called on each P at the next GC
861861
// safepoint if p.runSafePointFn is set.
862862
safePointFn func(*p)
863863
safePointWait int32

0 commit comments

Comments
 (0)