diff --git a/cmd/shfmt/main.go b/cmd/shfmt/main.go index 437bfc76..37e40898 100644 --- a/cmd/shfmt/main.go +++ b/cmd/shfmt/main.go @@ -360,7 +360,7 @@ func walkPath(path string, entry fs.DirEntry) error { // // TODO: Should there be a way to explicitly turn off ignore rules when walking? // Perhaps swapping the default to --apply-ignore=auto and allowing --apply-ignore=false? - // I don't imagine it's a particularly uesful scenario for now. + // I don't imagine it's a particularly useful scenario for now. props, err := ecQuery.Find(path, []string{"shell"}) if err != nil { return err diff --git a/interp/interp_test.go b/interp/interp_test.go index de7ca44c..d2e5e4c1 100644 --- a/interp/interp_test.go +++ b/interp/interp_test.go @@ -3743,7 +3743,7 @@ var testBuiltinsMap = map[string]func(interp.HandlerContext, []string) error{ return os.Link(oldname, newname) }, "touch": func(hc interp.HandlerContext, args []string) error { - filenames := args // create all arugments as filenames + filenames := args // create all arguments as filenames newTime := time.Now() if args[0] == "-t" { @@ -4369,7 +4369,7 @@ func TestReadShouldNotPanicWithNilStdin(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), runnerRunTimeout) defer cancel() if err := r.Run(ctx, f); err == nil { - t.Fatal("it should have retuned an error") + t.Fatal("it should have returned an error") } }