aboutsummaryrefslogtreecommitdiff
path: root/src/internal/runtime
diff options
context:
space:
mode:
authorRuihua Wen <spiffyeight77@gmail.com>2025-07-24 02:36:26 +0000
committerKeith Randall <khr@golang.org>2025-07-28 11:38:50 -0700
commitcd3655a8243b5f52b6a274a0aba5e01d998906c0 (patch)
tree2e3d360da9a97944bba1b0157bac3caed5003342 /src/internal/runtime
parentd5dc36af455ebd3e613780136766fba0cef7b0c4 (diff)
downloadgo-cd3655a8243b5f52b6a274a0aba5e01d998906c0.tar.xz
internal/runtime/maps: fix spelling errors in comments
Change-Id: I289d26f75bb556b46699159f06ce7eb03d34656d GitHub-Last-Rev: 10ce76df1d4951e021d460808c9d477cfbcf7c5c GitHub-Pull-Request: golang/go#74733 Reviewed-on: https://go-review.googlesource.com/c/go/+/690095 Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Mark Freeman <mark@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/internal/runtime')
-rw-r--r--src/internal/runtime/maps/group.go2
-rw-r--r--src/internal/runtime/maps/map.go6
-rw-r--r--src/internal/runtime/maps/table.go2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/internal/runtime/maps/group.go b/src/internal/runtime/maps/group.go
index faafbc951a..afd43785fd 100644
--- a/src/internal/runtime/maps/group.go
+++ b/src/internal/runtime/maps/group.go
@@ -39,7 +39,7 @@ const (
// On other architectures, bitset uses one byte per slot, where each byte is
// either 0x80 if the slot is part of the set or 0x00 otherwise. This makes it
// convenient to calculate for an entire group at once using standard
-// arithemetic instructions.
+// arithmetic instructions.
type bitset uint64
// first returns the relative index of the first control byte in the group that
diff --git a/src/internal/runtime/maps/map.go b/src/internal/runtime/maps/map.go
index 3b9a06239c..78fed6a5b7 100644
--- a/src/internal/runtime/maps/map.go
+++ b/src/internal/runtime/maps/map.go
@@ -113,7 +113,7 @@ import (
// Note that each table has its own load factor and grows independently. If the
// 1st bucket grows, it will split. We'll need 2 bits to select tables, though
// we'll have 3 tables total rather than 4. We support this by allowing
-// multiple indicies to point to the same table. This example:
+// multiple indices to point to the same table. This example:
//
// directory (globalDepth=2)
// +----+
@@ -365,7 +365,7 @@ func (m *Map) installTableSplit(old, left, right *table) {
t := m.directoryAt(uintptr(i))
newDir[2*i] = t
newDir[2*i+1] = t
- // t may already exist in multiple indicies. We should
+ // t may already exist in multiple indices. We should
// only update t.index once. Since the index must
// increase, seeing the original index means this must
// be the first time we've encountered this table.
@@ -380,7 +380,7 @@ func (m *Map) installTableSplit(old, left, right *table) {
m.dirLen = len(newDir)
}
- // N.B. left and right may still consume multiple indicies if the
+ // N.B. left and right may still consume multiple indices if the
// directory has grown multiple times since old was last split.
left.index = old.index
m.replaceTable(left)
diff --git a/src/internal/runtime/maps/table.go b/src/internal/runtime/maps/table.go
index 88f87187fe..28870d40c2 100644
--- a/src/internal/runtime/maps/table.go
+++ b/src/internal/runtime/maps/table.go
@@ -53,7 +53,7 @@ type table struct {
// Index of this table in the Map directory. This is the index of the
// _first_ location in the directory. The table may occur in multiple
- // sequential indicies.
+ // sequential indices.
//
// index is -1 if the table is stale (no longer installed in the
// directory).