]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix some problematic comments
authorcui fliter <imcusg@gmail.com>
Sat, 11 Mar 2023 02:33:57 +0000 (10:33 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 13 Mar 2023 16:49:45 +0000 (16:49 +0000)
Change-Id: Ia110d19fe5ff3adc8bbf86dd2112f9702164d495
Reviewed-on: https://go-review.googlesource.com/c/go/+/475515
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/crypto/hmac/hmac.go
src/runtime/mfixalloc.go
src/runtime/mspanset.go

index ed3ebc06027092bb8aea36ab1aa04a11f77f8e2e..35b9d5a17aa545dd6ad90b9e27444d4b63362989 100644 (file)
@@ -35,7 +35,7 @@ import (
 // opad = 0x5c byte repeated for key length
 // hmac = H([key ^ opad] H([key ^ ipad] text))
 
-// Marshalable is the combination of encoding.BinaryMarshaler and
+// marshalable is the combination of encoding.BinaryMarshaler and
 // encoding.BinaryUnmarshaler. Their method definitions are repeated here to
 // avoid a dependency on the encoding package.
 type marshalable interface {
index 8788d95c003c1a6c27687beaf21c71c4f94d2bb0..1a249e598136537d781647c0fdbd4848d3d249b7 100644 (file)
@@ -13,7 +13,7 @@ import (
        "unsafe"
 )
 
-// FixAlloc is a simple free-list allocator for fixed size objects.
+// fixalloc is a simple free-list allocator for fixed size objects.
 // Malloc uses a FixAlloc wrapped around sysAlloc to manage its
 // mcache and mspan objects.
 //
index abbd4501b14ed4f6b4ae8a64caf1b6f8b4c8531f..5520d6ce75e4186496b8f4738e84b89e39cf042c 100644 (file)
@@ -322,7 +322,7 @@ func (p *spanSetBlockAlloc) free(block *spanSetBlock) {
        p.stack.push(&block.lfnode)
 }
 
-// haidTailIndex represents a combined 32-bit head and 32-bit tail
+// headTailIndex represents a combined 32-bit head and 32-bit tail
 // of a queue into a single 64-bit value.
 type headTailIndex uint64