diff options
author | Dan Kegel <[email protected]> | 2024-08-13 11:39:41 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-08-14 12:00:55 +0200 |
commit | a47ff02c82b14af7bb97965274edbe6d60fa6b6a (patch) | |
tree | 63ed4bb4b7e54f9fd7d815799f55825c0873ef3a | |
parent | e27b2c4ad67f1cc3e7914ab1a1e82de95038dcd4 (diff) | |
download | tinygo-a47ff02c82b14af7bb97965274edbe6d60fa6b6a.tar.gz tinygo-a47ff02c82b14af7bb97965274edbe6d60fa6b6a.zip |
make spell: add a few missing misspellings, fix format of .csv file, also fix *.md
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | GNUmakefile | 4 | ||||
-rw-r--r-- | interp/interp.go | 2 | ||||
-rw-r--r-- | misspell.csv | 48 | ||||
-rw-r--r-- | src/machine/machine_rp2040_i2c.go | 2 | ||||
-rw-r--r-- | src/runtime/interrupt/interrupt_esp32c3.go | 2 |
6 files changed, 33 insertions, 29 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index bb2de6647..956d50b6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ - `builder`: keep un-wasm-opt'd .wasm if -work was passed - `builder`: make sure wasm-opt command line is printed if asked - `cgo`: implement shift operations in preprocessor macros - - `interp`: checking for methodset existance + - `interp`: checking for methodset existence * **standard library** - `machine`: add `__tinygo_spi_tx` function to simulator @@ -217,7 +217,7 @@ - `reflect`: add SetZero - `reflect`: fix iterating over maps with interface{} keys - `reflect`: implement Value.Grow - - `reflect`: remove unecessary heap allocations + - `reflect`: remove unnecessary heap allocations - `reflect`: use .key() instead of a type assert - `sync`: add implementation from upstream Go for OnceFunc, OnceValue, and OnceValues * **targets** diff --git a/GNUmakefile b/GNUmakefile index 504e1561a..68bb4430f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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) ) + misspell -error --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.md .PHONY: spellfix spellfix: tools ## Same as spell, but fixes what it finds - misspell -w --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) + misspell -w --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) ) *.md # https://www.client9.com/self-documenting-makefiles/ .PHONY: help diff --git a/interp/interp.go b/interp/interp.go index 63a664920..80afc39c7 100644 --- a/interp/interp.go +++ b/interp/interp.go @@ -52,7 +52,7 @@ func newRunner(mod llvm.Module, timeout time.Duration, debug bool) *runner { return &r } -// Dispose deallocates all alloated LLVM resources. +// Dispose deallocates all allocated LLVM resources. func (r *runner) dispose() { r.targetData.Dispose() r.targetData = llvm.TargetData{} diff --git a/misspell.csv b/misspell.csv index 7d247aea1..d12a28ed9 100644 --- a/misspell.csv +++ b/misspell.csv @@ -1,22 +1,26 @@ -acuire, acquire -adust, adjust -allcoate, allocate -archtecture, architecture -arcive, archive -configration, configuration -contants, constants -cricital, critical -evaulator, evaluator -freqency, frequency -frquency, frequency -implmented, implemented -interrput, interrupt -interrut, interrupt -poitner, pointer -probbably, probably -refection, reflection -satisifying, satisfying -simulataneously, simultaneously -suggets, suggests -undefied, undefined -unsiged, unsigned +acuire,acquire +addess,address +adust,adjust +allcoate,allocate +alloated,allocated +archtecture,architecture +arcive,archive +beconfigured,be configured +configration,configuration +contants,constants +cricital,critical +evaulator,evaluator +freqency,frequency +frquency,frequency +implmented,implemented +interrput,interrupt +interrut,interrupt +poitner,pointer +probbably,probably +refection,reflection +satisifying,satisfying +simulataneously,simultaneously +suggets,suggests +undefied,undefined +unecessary,unnecessary +unsiged,unsigned diff --git a/src/machine/machine_rp2040_i2c.go b/src/machine/machine_rp2040_i2c.go index c808a07ca..b7dc63d2b 100644 --- a/src/machine/machine_rp2040_i2c.go +++ b/src/machine/machine_rp2040_i2c.go @@ -36,7 +36,7 @@ var ( // GPIO config // Each controller must connect its clock SCL and data SDA to one pair of GPIOs. // The I2C standard requires that drivers drivea signal low, or when not driven the signal will be pulled high. -// This applies to SCL and SDA. The GPIO pads should beconfigured for: +// This applies to SCL and SDA. The GPIO pads should be configured for: // Pull-up enabled // Slew rate limited // Schmitt trigger enabled diff --git a/src/runtime/interrupt/interrupt_esp32c3.go b/src/runtime/interrupt/interrupt_esp32c3.go index b1a5bb1b3..4e3e3dccf 100644 --- a/src/runtime/interrupt/interrupt_esp32c3.go +++ b/src/runtime/interrupt/interrupt_esp32c3.go @@ -222,7 +222,7 @@ func handleException(mcause uintptr) { println("*** Exception: mcause:", mcause) switch uint32(mcause & 0x1f) { case 1: - println("*** virtual addess:", riscv.MTVAL.Get()) + println("*** virtual address:", riscv.MTVAL.Get()) case 2: println("*** opcode:", riscv.MTVAL.Get()) case 5: |