Fix typos

This commit is contained in:
tockn 2019-12-04 19:59:53 +09:00
parent 3c90e71300
commit 217064ca61
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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)
}
}

View file

@ -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
// <meta name="go-import" content="gopkg.in/yaml.v2 git https://gopkg.in/yaml.v2">
// ref. https://golang.org/cmd/go/#hdr-Remote_import_paths
func detectVCSAndRepoURL(r io.Reader) (string, *url.URL, error) {