From 0efbd1015774a2d894138519f1efcf7704bb2d95 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Sun, 8 Sep 2019 19:36:13 +0300 Subject: 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 --- src/debug/pe/file_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug/pe') diff --git a/src/debug/pe/file_test.go b/src/debug/pe/file_test.go index 42d328b547..bc41be2669 100644 --- a/src/debug/pe/file_test.go +++ b/src/debug/pe/file_test.go @@ -215,7 +215,7 @@ var fileTests = []fileTest{ // testdata/vmlinuz-4.15.0-47-generic is a trimmed down version of Linux Kernel image. // The original Linux Kernel image is about 8M and it is not recommended to add such a big binary file to the repo. // Moreover only a very small portion of the original Kernel image was being parsed by debug/pe package. - // Inorder to indentify this portion, the original image was first parsed by modified debug/pe package. + // In order to identify this portion, the original image was first parsed by modified debug/pe package. // Modification essentially communicated reader's positions before and after parsing. // Finally, bytes between those positions where written to a separate file, // generating trimmed down version Linux Kernel image used in this test case. -- cgit v1.3