From b419db6c15519a29ff3d7d2e56d8f115204f8c5d Mon Sep 17 00:00:00 2001 From: Marcel Meyer Date: Thu, 19 Jan 2023 22:26:15 +0000 Subject: all: fix typos in go file comments This is the second round to look for spelling mistakes. This time the manual sifting of the result list was made easier by filtering out capitalized and camelcase words. grep -r --include '*.go' -E '^// .*$' . | aspell list | grep -E -x '[A-Za-z]{1}[a-z]*' | sort | uniq This PR will be imported into Gerrit with the title and first comment (this text) used to generate the subject and body of the Gerrit change. Change-Id: Ie8a2092aaa7e1f051aa90f03dbaf2b9aaf5664a9 GitHub-Last-Rev: fc2bd6e0c51652f13a7588980f1408af8e6080f5 GitHub-Pull-Request: golang/go#57737 Reviewed-on: https://go-review.googlesource.com/c/go/+/461595 Auto-Submit: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Robert Griesemer --- src/runtime/metrics.go | 4 ++-- src/runtime/print.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime') diff --git a/src/runtime/metrics.go b/src/runtime/metrics.go index d4f7196f9f..d0c0b831e5 100644 --- a/src/runtime/metrics.go +++ b/src/runtime/metrics.go @@ -485,7 +485,7 @@ func makeStatDepSet(deps ...statDep) statDepSet { return s } -// differennce returns set difference of s from b as a new set. +// difference returns set difference of s from b as a new set. func (s statDepSet) difference(b statDepSet) statDepSet { var c statDepSet for i := range s { @@ -633,7 +633,7 @@ func nsToSec(ns int64) float64 { // statAggregate is the main driver of the metrics implementation. // // It contains multiple aggregates of runtime statistics, as well -// as a set of these aggregates that it has populated. The aggergates +// as a set of these aggregates that it has populated. The aggregates // are populated lazily by its ensure method. type statAggregate struct { ensured statDepSet diff --git a/src/runtime/print.go b/src/runtime/print.go index a1e0b8e134..0b05aedad3 100644 --- a/src/runtime/print.go +++ b/src/runtime/print.go @@ -35,7 +35,7 @@ var ( // // The text written during a process crash (following "panic" or "fatal // error") is not saved, since the goroutine stacks will generally be readable -// from the runtime datastructures in the core file. +// from the runtime data structures in the core file. func recordForPanic(b []byte) { printlock() -- cgit v1.3