aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/debug/stack.go2
-rw-r--r--src/runtime/export_test.go2
-rw-r--r--src/runtime/mbarrier.go2
-rw-r--r--src/runtime/panic.go2
-rw-r--r--src/runtime/pprof/pprof_test.go2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/debug/stack.go b/src/runtime/debug/stack.go
index d7a860b7dc..c4c3be141c 100644
--- a/src/runtime/debug/stack.go
+++ b/src/runtime/debug/stack.go
@@ -52,7 +52,7 @@ func SetCrashOutput(f *os.File, opts CrashOptions) error {
// The runtime will write to this file descriptor from
// low-level routines during a panic, possibly without
// a G, so we must call f.Fd() eagerly. This creates a
- // danger that that the file descriptor is no longer
+ // danger that the file descriptor is no longer
// valid at the time of the write, because the caller
// (incorrectly) called f.Close() and the kernel
// reissued the fd in a later call to open(2), leading
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go
index 5153ae5f36..79d83b3a3b 100644
--- a/src/runtime/export_test.go
+++ b/src/runtime/export_test.go
@@ -1264,7 +1264,7 @@ const (
type TimeHistogram timeHistogram
-// Counts returns the counts for the given bucket, subBucket indices.
+// Count returns the counts for the given bucket, subBucket indices.
// Returns true if the bucket was valid, otherwise returns the counts
// for the overflow bucket if bucket > 0 or the underflow bucket if
// bucket < 0, and false.
diff --git a/src/runtime/mbarrier.go b/src/runtime/mbarrier.go
index 19006044ae..a582a204b2 100644
--- a/src/runtime/mbarrier.go
+++ b/src/runtime/mbarrier.go
@@ -368,7 +368,7 @@ func typedmemclr(typ *_type, ptr unsafe.Pointer) {
memclrNoHeapPointers(ptr, typ.Size_)
}
-// reflect_typedslicecopy is meant for package reflect,
+// reflect_typedmemclr is meant for package reflect,
// but widely used packages access it using linkname.
// Notable members of the hall of shame include:
// - github.com/ugorji/go/codec
diff --git a/src/runtime/panic.go b/src/runtime/panic.go
index 58606e1dce..dc7a7fe357 100644
--- a/src/runtime/panic.go
+++ b/src/runtime/panic.go
@@ -1155,7 +1155,7 @@ func recovery(gp *g) {
// frames that we've already processed.
//
// There's a similar issue with nested panics, when the inner
- // panic supercedes the outer panic. Again, we end up needing to
+ // panic supersedes the outer panic. Again, we end up needing to
// walk the same stack frames.
//
// These are probably pretty rare occurrences in practice, and
diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go
index 78138b2f62..bba66ba48f 100644
--- a/src/runtime/pprof/pprof_test.go
+++ b/src/runtime/pprof/pprof_test.go
@@ -1229,7 +1229,7 @@ func blockFrequentShort(rate int) {
}
}
-// blockFrequentShort produces 10000 block events with an average duration of
+// blockInfrequentLong produces 10000 block events with an average duration of
// rate.
func blockInfrequentLong(rate int) {
for i := 0; i < 10000; i++ {