Skip to content

Commit 10ce76d

Browse files
committed
internal/runtime/maps: fix spelling errors in comments
Signed-off-by: Ruihua Wen <[email protected]>
1 parent 98a0311 commit 10ce76d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/internal/runtime/maps/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const (
3939
// On other architectures, bitset uses one byte per slot, where each byte is
4040
// either 0x80 if the slot is part of the set or 0x00 otherwise. This makes it
4141
// convenient to calculate for an entire group at once using standard
42-
// arithemetic instructions.
42+
// arithmetic instructions.
4343
type bitset uint64
4444

4545
// first returns the relative index of the first control byte in the group that

src/internal/runtime/maps/map.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ import (
113113
// Note that each table has its own load factor and grows independently. If the
114114
// 1st bucket grows, it will split. We'll need 2 bits to select tables, though
115115
// we'll have 3 tables total rather than 4. We support this by allowing
116-
// multiple indicies to point to the same table. This example:
116+
// multiple indices to point to the same table. This example:
117117
//
118118
// directory (globalDepth=2)
119119
// +----+
@@ -365,7 +365,7 @@ func (m *Map) installTableSplit(old, left, right *table) {
365365
t := m.directoryAt(uintptr(i))
366366
newDir[2*i] = t
367367
newDir[2*i+1] = t
368-
// t may already exist in multiple indicies. We should
368+
// t may already exist in multiple indices. We should
369369
// only update t.index once. Since the index must
370370
// increase, seeing the original index means this must
371371
// be the first time we've encountered this table.
@@ -380,7 +380,7 @@ func (m *Map) installTableSplit(old, left, right *table) {
380380
m.dirLen = len(newDir)
381381
}
382382

383-
// N.B. left and right may still consume multiple indicies if the
383+
// N.B. left and right may still consume multiple indices if the
384384
// directory has grown multiple times since old was last split.
385385
left.index = old.index
386386
m.replaceTable(left)

src/internal/runtime/maps/table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type table struct {
5353

5454
// Index of this table in the Map directory. This is the index of the
5555
// _first_ location in the directory. The table may occur in multiple
56-
// sequential indicies.
56+
// sequential indices.
5757
//
5858
// index is -1 if the table is stale (no longer installed in the
5959
// directory).

0 commit comments

Comments
 (0)