Skip to content

Commit d3e67cf

Browse files
dkegel-fastlydeadprogram
authored andcommitted
make spellfix: fix top level files, too.
Do manual fix in GNUmakefile, since spellchecking that is just too meta.
1 parent 5d82a7e commit d3e67cf

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

GNUmakefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,11 @@ endif
358358
# compress/flate appears to hang on wasi
359359
# crypto/hmac fails on wasi, it exits with a "slice out of range" panic
360360
# debug/plan9obj requires os.ReadAt, which is not yet supported on windows
361-
# image requires recover(), which is not yet supported on wasi
361+
# image requires recover(), which is not yet supported on wasi
362362
# io/ioutil requires os.ReadDir, which is not yet supported on windows or wasi
363363
# mime/quotedprintable requires syscall.Faccessat
364364
# strconv requires recover() which is not yet supported on wasi
365-
# text/tabwriter requries recover(), which is not yet supported on wasi
365+
# text/tabwriter requires recover(), which is not yet supported on wasi
366366
# text/template/parse requires recover(), which is not yet supported on wasi
367367
# testing/fstest requires os.ReadDir, which is not yet supported on windows or wasi
368368

@@ -963,11 +963,11 @@ lint: tools ## Lint source tree
963963
SPELLDIRSCMD=find . -depth 1 -type d | egrep -wv '.git|lib|llvm|src'; find src -depth 1 | egrep -wv 'device|internal|net|vendor'; find src/internal -depth 1 -type d | egrep -wv src/internal/wasi
964964
.PHONY: spell
965965
spell: tools ## Spellcheck source tree
966-
misspell -error --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.md
966+
misspell -error --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.go *.md
967967

968968
.PHONY: spellfix
969969
spellfix: tools ## Same as spell, but fixes what it finds
970-
misspell -w --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.md
970+
misspell -w --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.go *.md
971971

972972
# https://www.client9.com/self-documenting-makefiles/
973973
.PHONY: help

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ func Run(pkgName string, options *compileopts.Options, cmdArgs []string) error {
808808

809809
// buildAndRun builds and runs the given program, writing output to stdout and
810810
// errors to os.Stderr. It takes care of emulators (qemu, wasmtime, etc) and
811-
// passes command line arguments and evironment variables in a way appropriate
811+
// passes command line arguments and environment variables in a way appropriate
812812
// for the given emulator.
813813
func buildAndRun(pkgName string, config *compileopts.Config, stdout io.Writer, cmdArgs, environmentVars []string, timeout time.Duration, run func(cmd *exec.Cmd, result builder.BuildResult) error) (builder.BuildResult, error) {
814814

@@ -1631,7 +1631,7 @@ func main() {
16311631
for i := range bufs {
16321632
err := bufs[i].flush(os.Stdout, os.Stderr)
16331633
if err != nil {
1634-
// There was an error writing to stdout or stderr, so we probbably cannot print this.
1634+
// There was an error writing to stdout or stderr, so we probably cannot print this.
16351635
select {
16361636
case fail <- struct{}{}:
16371637
default:

misspell.csv

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ orignal,original
2828
overrided,overridden
2929
poiners,pointers
3030
poitner,pointer
31+
probbably,probably
3132
recogized,recognized
3233
refection,reflection
3334
requries,requires

0 commit comments

Comments
 (0)