From 41348081fa0511c8f442d236d32ff8d589c8c557 Mon Sep 17 00:00:00 2001 From: Daniel Martí Date: Tue, 10 Dec 2019 14:27:53 +0000 Subject: all: fix a number of misuses of the word "an" After golang.org/cl/210124, I wondered if the same error had gone unnoticed elsewhere. I quickly spotted another dozen mistakes after reading through the output of: git grep '\<[Aa]n [bcdfgjklmnpqrtvwyz][a-z]' Many results are false positives for acronyms like "an mtime", since it's pronounced "an em-time". However, the total amount of output isn't that large given how simple the grep pattern is. Change-Id: Iaa2ca69e42f4587a9e3137d6c5ed758887906ca6 Reviewed-on: https://go-review.googlesource.com/c/go/+/210678 Reviewed-by: Ian Lance Taylor Reviewed-by: Zach Jones Reviewed-by: Robert Griesemer Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/runtime/alg.go | 2 +- src/runtime/runtime1.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime') diff --git a/src/runtime/alg.go b/src/runtime/alg.go index 56a8212981..d8789b4b5f 100644 --- a/src/runtime/alg.go +++ b/src/runtime/alg.go @@ -344,7 +344,7 @@ func initAlgAES() { getRandomData(aeskeysched[:]) } -// Note: These routines perform the read with an native endianness. +// Note: These routines perform the read with a native endianness. func readUnaligned32(p unsafe.Pointer) uint32 { q := (*[4]byte)(p) if sys.BigEndian { diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index 180dd7c7e4..148717f83d 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -486,7 +486,7 @@ func reflect_resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { return unsafe.Pointer((*_type)(rtype).typeOff(typeOff(off))) } -// reflect_resolveTextOff resolves an function pointer offset from a base type. +// reflect_resolveTextOff resolves a function pointer offset from a base type. //go:linkname reflect_resolveTextOff reflect.resolveTextOff func reflect_resolveTextOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { return (*_type)(rtype).textOff(textOff(off)) -- cgit v1.3-5-g9baa