aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/list2.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/list2.go')
-rw-r--r--test/typeparam/list2.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/typeparam/list2.go b/test/typeparam/list2.go
index 32023cf319..e7f346c78e 100644
--- a/test/typeparam/list2.go
+++ b/test/typeparam/list2.go
@@ -50,7 +50,7 @@ func (e *_Element[T]) Prev() *_Element[T] {
// The zero value for _List is an empty list ready to use.
type _List[T any] struct {
root _Element[T] // sentinel list element, only &root, root.prev, and root.next are used
- len int // current list length excluding (this) sentinel element
+ len int // current list length excluding (this) sentinel element
}
// Init initializes or clears list l.
@@ -594,7 +594,6 @@ func TestTransform() {
checkList(l2, []interface{}{"1", "2"})
}
-
func main() {
TestList()
TestExtending()
@@ -607,4 +606,3 @@ func main() {
TestInsertAfterUnknownMark()
TestTransform()
}
-