]> Cypherpunks repositories - gostls13.git/commitdiff
all: make function comments match function names
authorcuishuang <imcusg@gmail.com>
Sat, 1 Jun 2024 16:51:35 +0000 (00:51 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 3 Jun 2024 14:56:25 +0000 (14:56 +0000)
Change-Id: Ideb9ef00e7bc660b005fc080973fd9f3d36c5a1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/589536
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/compile/internal/rangefunc/rangefunc_test.go
src/crypto/tls/handshake_server_test.go
src/go/printer/printer_test.go
src/hash/crc32/crc32_test.go
src/image/gif/writer_test.go
src/internal/trace/order.go

index cd180f95a1fe8b2f74eaf2428863f26a88a176cc..97ab254395332ac7659dd586b7a1931ccb72867a 100644 (file)
@@ -1407,7 +1407,7 @@ func TestVeryBad2(t *testing.T) {
        }
 }
 
-// TestCheckVeryBad checks the behavior of an extremely poorly behaved iterator,
+// TestVeryBadCheck checks the behavior of an extremely poorly behaved iterator,
 // which also suppresses the exceptions from "Check"
 func TestVeryBadCheck(t *testing.T) {
        result := veryBadCheck([]int{10, 20, 30, 40}) // even length
index bc45a289c1ed7077f16a44fb18d97a9b95aaf6c5..44bc8f1bb7442a5ddc5bb4980620a147052352d2 100644 (file)
@@ -1078,7 +1078,7 @@ func TestHandshakeServerSNIGetCertificate(t *testing.T) {
        runServerTestTLS12(t, test)
 }
 
-// TestHandshakeServerSNICertForNameNotFound is similar to
+// TestHandshakeServerSNIGetCertificateNotFound is similar to
 // TestHandshakeServerSNICertForName, but tests to make sure that when the
 // GetCertificate method doesn't return a cert, we fall back to what's in
 // the NameToCertificate map.
@@ -1096,7 +1096,7 @@ func TestHandshakeServerSNIGetCertificateNotFound(t *testing.T) {
        runServerTestTLS12(t, test)
 }
 
-// TestHandshakeServerSNICertForNameError tests to make sure that errors in
+// TestHandshakeServerSNIGetCertificateError tests to make sure that errors in
 // GetCertificate result in a tls alert.
 func TestHandshakeServerSNIGetCertificateError(t *testing.T) {
        const errMsg = "TestHandshakeServerSNIGetCertificateError error"
index 6d5b559e50e493494a4ebe590cc8c6c2e8e3ff3f..4d5d3eabedca06f58816463cc639fdb8d9c7b778 100644 (file)
@@ -668,7 +668,7 @@ func TestWriteErrors(t *testing.T) {
        }
 }
 
-// TextX is a skeleton test that can be filled in for debugging one-off cases.
+// TestX is a skeleton test that can be filled in for debugging one-off cases.
 // Do not remove.
 func TestX(t *testing.T) {
        const src = `
index f084612f6f0ff1deeb1768633197960899135b67..5a3e134cf7a5957284042168d64744a9bf7b08a8 100644 (file)
@@ -199,7 +199,7 @@ func TestMarshalTableMismatch(t *testing.T) {
        }
 }
 
-// TestSimple tests the slicing-by-8 algorithm.
+// TestSlicing tests the slicing-by-8 algorithm.
 func TestSlicing(t *testing.T) {
        tab := slicingMakeTable(IEEE)
        testGoldenIEEE(t, func(b []byte) uint32 {
index 8dd28908d751867f5214481fddb5a5f0003ff7cb..a16dbaa1f068ca5965651e88a278e9aa80978d29 100644 (file)
@@ -52,7 +52,7 @@ func averageDelta(m0, m1 image.Image) int64 {
        return averageDeltaBound(m0, m1, b, b)
 }
 
-// averageDeltaBounds returns the average delta in RGB space. The average delta is
+// averageDeltaBound returns the average delta in RGB space. The average delta is
 // calculated in the specified bounds.
 func averageDeltaBound(m0, m1 image.Image, b0, b1 image.Rectangle) int64 {
        var sum, n int64
index 9765df6177b884a78cecfa6b325f0812a96d23ca..4b3b8029fd293a63189434b8fb87a8a7cbecee82 100644 (file)
@@ -1262,7 +1262,7 @@ func (s *rangeState) hasRange(typ rangeType) bool {
        return false
 }
 
-// endsRange ends a special range in time on the goroutine.
+// endRange ends a special range in time on the goroutine.
 //
 // This must line up with the start event type  of the range the goroutine is currently in.
 func (s *rangeState) endRange(typ event.Type) (stringID, error) {