Skip to content

Commit 669f468

Browse files
authored
all: fix a few typos
1 parent 6042a7f commit 669f468

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: cmd/shfmt/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func walkPath(path string, entry fs.DirEntry) error {
360360
//
361361
// TODO: Should there be a way to explicitly turn off ignore rules when walking?
362362
// Perhaps swapping the default to --apply-ignore=auto and allowing --apply-ignore=false?
363-
// I don't imagine it's a particularly uesful scenario for now.
363+
// I don't imagine it's a particularly useful scenario for now.
364364
props, err := ecQuery.Find(path, []string{"shell"})
365365
if err != nil {
366366
return err

Diff for: interp/interp_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3743,7 +3743,7 @@ var testBuiltinsMap = map[string]func(interp.HandlerContext, []string) error{
37433743
return os.Link(oldname, newname)
37443744
},
37453745
"touch": func(hc interp.HandlerContext, args []string) error {
3746-
filenames := args // create all arugments as filenames
3746+
filenames := args // create all arguments as filenames
37473747

37483748
newTime := time.Now()
37493749
if args[0] == "-t" {
@@ -4369,7 +4369,7 @@ func TestReadShouldNotPanicWithNilStdin(t *testing.T) {
43694369
ctx, cancel := context.WithTimeout(context.Background(), runnerRunTimeout)
43704370
defer cancel()
43714371
if err := r.Run(ctx, f); err == nil {
4372-
t.Fatal("it should have retuned an error")
4372+
t.Fatal("it should have returned an error")
43734373
}
43744374
}
43754375

0 commit comments

Comments
 (0)