Skip to content

internal/runtime/maps: fix spelling errors in comments #74733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/internal/runtime/maps/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/internal/runtime/maps/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
// +----+
Expand Down Expand Up @@ -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.
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/internal/runtime/maps/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down