mirror of
https://github.com/golang/go.git
synced 2025-12-28 06:34:04 +00:00
all: fix some comment issues
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>
This commit is contained in:
parent
93b49f773d
commit
a70addd3b3
@ -153,7 +153,7 @@ var data = Data{
|
||||
0x8d2a4c8a,
|
||||
},
|
||||
Table3: []uint32{
|
||||
// round3
|
||||
// round 3
|
||||
0xfffa3942,
|
||||
0x8771f681,
|
||||
0x6d9d6122,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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?
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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('.')
|
||||
|
||||
@ -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.
|
||||
//
|
||||
|
||||
Loading…
Reference in New Issue
Block a user