diff --git a/commands_test.go b/commands_test.go index 3a118a3..d1f378a 100644 --- a/commands_test.go +++ b/commands_test.go @@ -156,7 +156,7 @@ func TestCommandGet(t *testing.T) { }, }, { - name: "dot slach ./", + name: "dot slash ./", scenario: func(t *testing.T, tmpRoot string, cloneArgs *_cloneArgs, updateArgs *_updateArgs) { localDir := filepath.Join(tmpRoot, "github.com", "motemen") os.MkdirAll(localDir, 0755) diff --git a/getter.go b/getter.go index de37c9a..f08235b 100644 --- a/getter.go +++ b/getter.go @@ -68,7 +68,7 @@ func (g *getter) get(argURL string) error { if g.ssh { // Assume Git repository if `-p` is given. if u, err = convertGitURLHTTPToSSH(u); err != nil { - return xerrors.Errorf("Could not convet URL %q: %w", u, err) + return xerrors.Errorf("Could not convert URL %q: %w", u, err) } } diff --git a/go_import.go b/go_import.go index c9b0afc..8426338 100644 --- a/go_import.go +++ b/go_import.go @@ -45,7 +45,7 @@ func detectGoImport(u *url.URL) (string, *url.URL, error) { return detectVCSAndRepoURL(resp.Body) } -// find meta tag like following from thml +// find meta tag like following from html // // ref. https://golang.org/cmd/go/#hdr-Remote_import_paths func detectVCSAndRepoURL(r io.Reader) (string, *url.URL, error) {