Skip to content

Commit

Permalink
all: fix a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored Nov 30, 2024
1 parent 6042a7f commit 669f468
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/shfmt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions interp/interp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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")
}
}

Expand Down

0 comments on commit 669f468

Please sign in to comment.