aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDan Kegel <[email protected]>2024-08-14 14:36:16 -0700
committerRon Evans <[email protected]>2024-08-15 10:34:35 +0200
commitd3e67cf18c5ed61be3e43bb02c10327638c8b9ed (patch)
tree57c9eb0853b97f050ddedc2f6618d6bcd1cec6e6
parent5d82a7eee6568effb8f6daff1a28c80b97a9d109 (diff)
downloadtinygo-d3e67cf18c5ed61be3e43bb02c10327638c8b9ed.tar.gz
tinygo-d3e67cf18c5ed61be3e43bb02c10327638c8b9ed.zip
make spellfix: fix top level files, too.
Do manual fix in GNUmakefile, since spellchecking that is just too meta.
-rw-r--r--GNUmakefile8
-rw-r--r--main.go4
-rw-r--r--misspell.csv1
3 files changed, 7 insertions, 6 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 68bb4430f..bc0e1e48f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -358,11 +358,11 @@ endif
# compress/flate appears to hang on wasi
# crypto/hmac fails on wasi, it exits with a "slice out of range" panic
# debug/plan9obj requires os.ReadAt, which is not yet supported on windows
-# image requires recover(), which is not yet supported on wasi
+# image requires recover(), which is not yet supported on wasi
# io/ioutil requires os.ReadDir, which is not yet supported on windows or wasi
# mime/quotedprintable requires syscall.Faccessat
# strconv requires recover() which is not yet supported on wasi
-# text/tabwriter requries recover(), which is not yet supported on wasi
+# text/tabwriter requires recover(), which is not yet supported on wasi
# text/template/parse requires recover(), which is not yet supported on wasi
# testing/fstest requires os.ReadDir, which is not yet supported on windows or wasi
@@ -963,11 +963,11 @@ lint: tools ## Lint source tree
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
.PHONY: spell
spell: tools ## Spellcheck source tree
- misspell -error --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.md
+ misspell -error --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.go *.md
.PHONY: spellfix
spellfix: tools ## Same as spell, but fixes what it finds
- misspell -w --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.md
+ misspell -w --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.go *.md
# https://www.client9.com/self-documenting-makefiles/
.PHONY: help
diff --git a/main.go b/main.go
index cbe4b9dd4..b83ea85f8 100644
--- a/main.go
+++ b/main.go
@@ -808,7 +808,7 @@ func Run(pkgName string, options *compileopts.Options, cmdArgs []string) error {
// buildAndRun builds and runs the given program, writing output to stdout and
// errors to os.Stderr. It takes care of emulators (qemu, wasmtime, etc) and
-// passes command line arguments and evironment variables in a way appropriate
+// passes command line arguments and environment variables in a way appropriate
// for the given emulator.
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) {
@@ -1631,7 +1631,7 @@ func main() {
for i := range bufs {
err := bufs[i].flush(os.Stdout, os.Stderr)
if err != nil {
- // There was an error writing to stdout or stderr, so we probbably cannot print this.
+ // There was an error writing to stdout or stderr, so we probably cannot print this.
select {
case fail <- struct{}{}:
default:
diff --git a/misspell.csv b/misspell.csv
index f6d58a824..9962ee11f 100644
--- a/misspell.csv
+++ b/misspell.csv
@@ -28,6 +28,7 @@ orignal,original
overrided,overridden
poiners,pointers
poitner,pointer
+probbably,probably
recogized,recognized
refection,reflection
requries,requires