diff options
author | cui fliter <imcusg@gmail.com> | 2024-03-22 23:31:44 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-03-26 19:58:28 +0000 |
commit | 1e12eab8705d1d8d7472be9147a39caa1c8380db (patch) | |
tree | cde9e173c3e757516f56f9e66c41065513738832 /test | |
parent | 4217877670e94b88ddd1ee1041b31d5825b08e2a (diff) | |
download | go-1e12eab8705d1d8d7472be9147a39caa1c8380db.tar.gz go-1e12eab8705d1d8d7472be9147a39caa1c8380db.zip |
all: fix a large number of comments
Partial typo corrections, following https://go.dev/wiki/Spelling
Change-Id: I2357906ff2ea04305c6357418e4e9556e20375d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/573776
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/typeparam/graph.go | 5 | ||||
-rw-r--r-- | test/typeparam/list2.go | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/typeparam/graph.go b/test/typeparam/graph.go index 5cd1faa76f..544318647b 100644 --- a/test/typeparam/graph.go +++ b/test/typeparam/graph.go @@ -11,7 +11,7 @@ import ( "fmt" ) -// _Equal reports whether two slices are equal: the same length and all +// _SliceEqual reports whether two slices are equal: the same length and all // elements equal. All floating point NaNs are considered equal. func _SliceEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { @@ -42,7 +42,7 @@ type _NodeC[_Edge any] interface { Edges() []_Edge } -// Edgec is the constraints on an edge in a graph, given the _Node type. +// _EdgeC is the constraints on an edge in a graph, given the _Node type. type _EdgeC[_Node any] interface { comparable Nodes() (a, b _Node) @@ -153,6 +153,7 @@ func (m mazeRoom) Edges() []mazeEdge { } // Nodes returns the rooms connected by an edge. +// //go:noinline func (e mazeEdge) Nodes() (mazeRoom, mazeRoom) { m1, ok := zork[e.from] diff --git a/test/typeparam/list2.go b/test/typeparam/list2.go index 111ac787e5..0b976f0b18 100644 --- a/test/typeparam/list2.go +++ b/test/typeparam/list2.go @@ -14,7 +14,7 @@ import ( "strconv" ) -// Element is an element of a linked list. +// _Element is an element of a linked list. type _Element[T any] struct { // Next and previous pointers in the doubly-linked list of elements. // To simplify the implementation, internally a list l is implemented |