dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Fix tiny misspelling in comment

This commit is contained in:
Matt Jesuele
2019-07-10 15:50:15 -07:00
parent e2ec7828ab
commit c4e1099ebb

View File

@@ -28,7 +28,7 @@ func FindGitConfigUnderRoot() (string, error) {
// a directory named .git, returning its path if found, and an error if not.
//
// Both currentPath and terminalPath are assumed to be absolute paths. An error is returned
// if currentPath is not a descendent of terminalPath.
// if currentPath is not a descendant of terminalPath.
func FindGitConfigDir(currentPath, terminalPath string) (string, error) {
if !strings.HasPrefix(currentPath, terminalPath) {
return "", fmt.Errorf("current path %s is not a descendent of terminal path %s", currentPath, terminalPath)