diff options
| author | Ainar Garipov <gugl.zadolbal@gmail.com> | 2019-09-08 19:36:13 +0300 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2019-09-08 17:28:20 +0000 |
| commit | 0efbd1015774a2d894138519f1efcf7704bb2d95 (patch) | |
| tree | d7528bf5239a4875537e7ff7f8a9ae36c21851be /src/internal | |
| parent | 83a78eb91118768d5bb3b536a274a215f5141023 (diff) | |
| download | go-0efbd1015774a2d894138519f1efcf7704bb2d95.tar.xz | |
all: fix typos
Use the following (suboptimal) script to obtain a list of possible
typos:
#!/usr/bin/env sh
set -x
git ls-files |\
grep -e '\.\(c\|cc\|go\)$' |\
xargs -n 1\
awk\
'/\/\// { gsub(/.*\/\//, ""); print; } /\/\*/, /\*\// { gsub(/.*\/\*/, ""); gsub(/\*\/.*/, ""); }' |\
hunspell -d en_US -l |\
grep '^[[:upper:]]\{0,1\}[[:lower:]]\{1,\}$' |\
grep -v -e '^.\{1,4\}$' -e '^.\{16,\}$' |\
sort -f |\
uniq -c |\
awk '$1 == 1 { print $2; }'
Then, go through the results manually and fix the most obvious typos in
the non-vendored code.
Change-Id: I3cb5830a176850e1a0584b8a40b47bde7b260eae
Reviewed-on: https://go-review.googlesource.com/c/go/+/193848
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/internal')
| -rw-r--r-- | src/internal/bytealg/count_ppc64x.s | 2 | ||||
| -rw-r--r-- | src/internal/cpu/cpu.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/bytealg/count_ppc64x.s b/src/internal/bytealg/count_ppc64x.s index 7abdce1954..a64d7d792d 100644 --- a/src/internal/bytealg/count_ppc64x.s +++ b/src/internal/bytealg/count_ppc64x.s @@ -49,7 +49,7 @@ TEXT countbytebody<>(SB), NOSPLIT|NOFRAME, $0-0 cmploop: LXVW4X (R3), VS32 // load bytes from string - // when the bytes match, the corresonding byte contains all 1s + // when the bytes match, the corresponding byte contains all 1s VCMPEQUB V1, V0, V2 // compare bytes VPOPCNTD V2, V3 // each double word contains its count VADDUDM V3, V5, V5 // accumulate bit count in each double word diff --git a/src/internal/cpu/cpu.go b/src/internal/cpu/cpu.go index 76fc878abe..f326b06332 100644 --- a/src/internal/cpu/cpu.go +++ b/src/internal/cpu/cpu.go @@ -160,7 +160,7 @@ type option struct { // processOptions enables or disables CPU feature values based on the parsed env string. // The env string is expected to be of the form cpu.feature1=value1,cpu.feature2=value2... -// where feature names is one of the architecture specifc list stored in the +// where feature names is one of the architecture specific list stored in the // cpu packages options variable and values are either 'on' or 'off'. // If env contains cpu.all=off then all cpu features referenced through the options // variable are disabled. Other feature names and values result in warning messages. |
