aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
authordkegel-fastly <[email protected]>2024-04-19 06:57:01 -0700
committerGitHub <[email protected]>2024-04-19 06:57:01 -0700
commit39029cc37604c175c8b512478ba60ab617e79960 (patch)
tree16b9504cf2c4a9cd2f699542cf33e008f0b83238 /loader
parent712275572554d0ba8ee85e722fef8d6c91d6531a (diff)
downloadtinygo-39029cc37604c175c8b512478ba60ab617e79960.tar.gz
tinygo-39029cc37604c175c8b512478ba60ab617e79960.zip
Run Nick G's spellchecker github.com/client9/misspell, carefuly fix what it found (#4235)
Diffstat (limited to 'loader')
-rw-r--r--loader/goroot.go2
-rw-r--r--loader/loader.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/loader/goroot.go b/loader/goroot.go
index ea2f705dc..c7341fc7f 100644
--- a/loader/goroot.go
+++ b/loader/goroot.go
@@ -214,7 +214,7 @@ func listGorootMergeLinks(goroot, tinygoroot string, overrides map[string]bool)
return merges, nil
}
-// needsSyscallPackage returns whether the syscall package should be overriden
+// needsSyscallPackage returns whether the syscall package should be overridden
// with the TinyGo version. This is the case on some targets.
func needsSyscallPackage(buildTags []string) bool {
for _, tag := range buildTags {
diff --git a/loader/loader.go b/loader/loader.go
index e66812a8e..a874291a6 100644
--- a/loader/loader.go
+++ b/loader/loader.go
@@ -430,7 +430,7 @@ func (p *Package) parseFiles() ([]*ast.File, error) {
var files []*ast.File
var fileErrs []error
- // Parse all files (incuding CgoFiles).
+ // Parse all files (including CgoFiles).
parseFile := func(file string) {
if !filepath.IsAbs(file) {
file = filepath.Join(p.Dir, file)