]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some comment issues
authorcuishuang <imcusg@gmail.com>
Thu, 4 Dec 2025 03:39:53 +0000 (11:39 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 5 Dec 2025 15:30:36 +0000 (07:30 -0800)
Change-Id: I5dec35b1432705b3a52859c38e758220282226af
Reviewed-on: https://go-review.googlesource.com/c/go/+/726700
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/md5/gen.go
src/crypto/tls/ticket.go
src/encoding/gob/decgen.go
src/go/ast/walk.go
src/net/http/cookie.go
src/runtime/mgc.go

index bcbc70367de9b16efa6818be8f08e311a43fa5d5..cad9e9140557fb238fd82a7574292eaf956deb02 100644 (file)
@@ -153,7 +153,7 @@ var data = Data{
                0x8d2a4c8a,
        },
        Table3: []uint32{
-               // round3
+               // round 3
                0xfffa3942,
                0x8771f681,
                0x6d9d6122,
index c56898c6f79813c957fb8497ea416f0f6400a34c..11f7efde858539ff85d93db2addc4d3330d22413 100644 (file)
@@ -81,7 +81,7 @@ type SessionState struct {
        version     uint16
        isClient    bool
        cipherSuite uint16
-       // createdAt is the generation time of the secret on the sever (which for
+       // createdAt is the generation time of the secret on the server (which for
        // TLS 1.0–1.2 might be earlier than the current session) and the time at
        // which the ticket was received on the client.
        createdAt        uint64 // seconds since UNIX epoch
index 420c86207c200ed58f710650a0181634c7fea008..95d84b67623e013abcb5a3aa1eff483d71cdbc94 100644 (file)
@@ -4,8 +4,8 @@
 
 //go:build ignore
 
-// encgen writes the helper functions for encoding. Intended to be
-// used with go generate; see the invocation in encode.go.
+// decgen writes the helper functions for decoding. Intended to be
+// used with go generate; see the invocation in decode.go.
 
 // TODO: We could do more by being unsafe. Add a -unsafe flag?
 
index 24cdc60d73d5f2d626699b5f54c2ac4ecfebd59f..9328bccae41054c28bc596db56a85c6625d62688 100644 (file)
@@ -370,7 +370,7 @@ func (f inspector) Visit(node Node) Visitor {
 // call of f(nil).
 //
 // In many cases it may be more convenient to use [Preorder], which
-// returns an iterator over the sqeuence of nodes, or [PreorderStack],
+// returns an iterator over the sequence of nodes, or [PreorderStack],
 // which (like [Inspect]) provides control over descent into subtrees,
 // but additionally reports the stack of enclosing nodes.
 func Inspect(node Node, f func(Node) bool) {
index f74bc1043c509e2dc67073fe4b785e75a321173e..4cc9ae31522aeb98dfbfda5f702ca92c4aa4a07a 100644 (file)
@@ -443,7 +443,8 @@ func isCookieDomainName(s string) bool {
        }
 
        if s[0] == '.' {
-               // A cookie a domain attribute may start with a leading dot.
+               // A cookie domain attribute may start with a leading dot.
+               // Per RFC 6265 section 5.2.3, a leading dot is ignored.
                s = s[1:]
        }
        last := byte('.')
index 32cd8cb0e892647954bef0e6806c7453eb41e2a4..a3bed4b3eb62f990c4d5581d484a944a8b0b5263 100644 (file)
@@ -5,7 +5,7 @@
 // Garbage collector (GC).
 //
 // The GC runs concurrently with mutator threads, is type accurate (aka precise), allows multiple
-// GC thread to run in parallel. It is a concurrent mark and sweep that uses a write barrier. It is
+// GC threads to run in parallel. It is a concurrent mark and sweep that uses a write barrier. It is
 // non-generational and non-compacting. Allocation is done using size segregated per P allocation
 // areas to minimize fragmentation while eliminating locks in the common case.
 //