Skip to content

Commit a71bb57

Browse files
cuishuanggopherbot
authored andcommitted
all: make struct comments match struct names
Change-Id: I011f66854a9af5f3baa20abebd4b315c15db571f Reviewed-on: https://go-review.googlesource.com/c/go/+/596715 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: shuang cui <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Commit-Queue: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 611f18c commit a71bb57

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

src/cmd/trace/gstate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type gState[R resource] struct {
4646
// goroutine stopped executing. These are flushed on every stop or block.
4747
completedRanges []completedRange
4848

49-
// startRunning is the most recent event that caused a goroutine to
49+
// startRunningTime is the most recent event that caused a goroutine to
5050
// transition to GoRunning.
5151
startRunningTime trace.Time
5252

src/internal/coverage/defs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func (cm CounterGranularity) String() string {
267267
// by the Go command and by the coverage runtime.
268268
const MetaFilesFileName = "metafiles.txt"
269269

270-
// MetaFilePaths contains information generated by the Go command and
270+
// MetaFileCollection contains information generated by the Go command and
271271
// the read in by coverage test support functions within an executing
272272
// "go test -cover" binary.
273273
type MetaFileCollection struct {

src/log/slog/internal/buffer/buffer.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ package buffer
77

88
import "sync"
99

10-
// buffer adapted from go/src/fmt/print.go
10+
// Buffer is a byte buffer.
11+
//
12+
// This implementation is adapted from the unexported type buffer
13+
// in go/src/fmt/print.go.
1114
type Buffer []byte
1215

1316
// Having an initial size gives a dramatic speedup.

src/runtime/arena.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func userArenaChunkReserveBytes() uintptr {
232232
}
233233

234234
type userArena struct {
235-
// full is a list of full chunks that have not enough free memory left, and
235+
// fullList is a list of full chunks that have not enough free memory left, and
236236
// that we'll free once this user arena is freed.
237237
//
238238
// Can't use mSpanList here because it's not-in-heap.

src/sync/export_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var Runtime_Semrelease = runtime_Semrelease
1010
var Runtime_procPin = runtime_procPin
1111
var Runtime_procUnpin = runtime_procUnpin
1212

13-
// poolDequeue testing.
13+
// PoolDequeue exports an interface for pollDequeue testing.
1414
type PoolDequeue interface {
1515
PushHead(val any) bool
1616
PopHead() (any, bool)

0 commit comments

Comments
 (0)