Fix a few typos

This commit is contained in:
Andrei Vagin
2025-01-29 21:16:51 -08:00
parent 8bdf76c5ca
commit f010ae01ac
116 changed files with 189 additions and 182 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ type CPUSet []*CPU
// NewCPUSet creates a CPUSet from data read from /proc/cpuinfo.
func NewCPUSet(data string) (CPUSet, error) {
// Each processor entry should start with the
// processor key. Find the beginings of each.
// processor key. Find the beginnings of each.
r := buildRegex(processorKey)
indices := r.FindAllStringIndex(data, -1)
@@ -59,7 +59,7 @@ func NewCPUSet(data string) (CPUSet, error) {
// Valid cpus are now defined by strings in between
// indexes (e.g. data[index[i], index[i+1]]).
// There should be len(indicies) - 1 CPUs
// There should be len(indices) - 1 CPUs
// since the last index is the end of the string.
var set CPUSet
// Find each string that represents a CPU. These begin "processor".