From c40423f9257c4a0b90d2e9c4c1201e8ff0831dc8 Mon Sep 17 00:00:00 2001 From: Nathan Baulch Date: Sat, 26 Oct 2024 13:01:36 +1100 Subject: [PATCH] fix: typos --- README.md | 2 +- runner/engine.go | 2 +- runner/engine_test.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a9ebee94..7001bfaf 100644 --- a/README.md +++ b/README.md @@ -260,7 +260,7 @@ export PATH=$PATH:$(go env GOPATH)/bin #Confirm this line in your .profile and m ### Error under wsl when ' is included in the bin -Should use `\` to escape the `' in the bin. related issue: [#305](https://github.com/air-verse/air/issues/305) +Should use `\` to escape the `'` in the bin. related issue: [#305](https://github.com/air-verse/air/issues/305) ### Question: how to do hot compile only and do not run anything? diff --git a/runner/engine.go b/runner/engine.go index 8bc2ade7..3785c54d 100644 --- a/runner/engine.go +++ b/runner/engine.go @@ -338,7 +338,7 @@ func (e *Engine) start() { } } - // cannot set buldDelay to 0, because when the write multiple events received in short time + // cannot set buildDelay to 0, because when the write multiple events received in short time // it will start Multiple buildRuns: https://github.com/air-verse/air/issues/473 time.Sleep(e.config.buildDelay()) e.flushEvents() diff --git a/runner/engine_test.go b/runner/engine_test.go index 1561c3d6..7de8be70 100644 --- a/runner/engine_test.go +++ b/runner/engine_test.go @@ -778,7 +778,7 @@ func TestWriteDefaultConfig(t *testing.T) { if err != nil { t.Fatal(err) } - // check the file is exist + // check the file exists if _, err := os.Stat(configName); err != nil { t.Fatal(err) } @@ -861,7 +861,7 @@ func Test(t *testing.T) { t.Fatal(err) } // run sed - // check the file is exist + // check the file exists if _, err := os.Stat(dftTOML); err != nil { t.Fatal(err) } @@ -998,7 +998,7 @@ include_file = ["main.sh"] assert.Equal(t, []byte("modified"), bytes) } -func TestShouldIncludeIncludedFileWihtoutIncludedExt(t *testing.T) { +func TestShouldIncludeIncludedFileWithoutIncludedExt(t *testing.T) { port, f := GetPort() f() t.Logf("port: %d", port)