diff options
author | cui fliter <imcusg@gmail.com> | 2022-11-14 20:13:10 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-12-03 17:08:51 +0000 |
commit | 3a7a528c2d7ee0c7b2988a7aee0b9347e973cbed (patch) | |
tree | 357ab80e81b101c245d07fa4d61be2199ea0a30c /test/typeparam | |
parent | c0497d1a81b1104a3981be33abfd66252cea90c8 (diff) | |
download | go-3a7a528c2d7ee0c7b2988a7aee0b9347e973cbed.tar.gz go-3a7a528c2d7ee0c7b2988a7aee0b9347e973cbed.zip |
all: fix some comments for method
Change-Id: I4cff6b2a1fed6acdf754539c3c53a61eaa3b3f84
Reviewed-on: https://go-review.googlesource.com/c/go/+/450176
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'test/typeparam')
-rw-r--r-- | test/typeparam/list.go | 2 | ||||
-rw-r--r-- | test/typeparam/listimp.dir/a.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/typeparam/list.go b/test/typeparam/list.go index 311207e892..34ad71c499 100644 --- a/test/typeparam/list.go +++ b/test/typeparam/list.go @@ -47,7 +47,7 @@ type _ListNum[T OrderedNum] struct { const Clip = 5 -// clippedLargest returns the largest in the list of OrderNums, but a max of 5. +// ClippedLargest returns the largest in the list of OrderNums, but a max of 5. // Test use of untyped constant in an expression with a generically-typed parameter func (l *_ListNum[T]) ClippedLargest() T { var max T diff --git a/test/typeparam/listimp.dir/a.go b/test/typeparam/listimp.dir/a.go index bf1641af9c..e9c46d6f32 100644 --- a/test/typeparam/listimp.dir/a.go +++ b/test/typeparam/listimp.dir/a.go @@ -41,7 +41,7 @@ type ListNum[T OrderedNum] struct { const Clip = 5 -// clippedLargest returns the largest in the list of OrderNums, but a max of 5. +// ClippedLargest returns the largest in the list of OrderNums, but a max of 5. func (l *ListNum[T]) ClippedLargest() T { var max T for p := l; p != nil; p = p.Next { |