mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
cmd: Fix trimSrcPath doc
This commit is contained in:
parent
66cfd1f132
commit
903e5b7073
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ func NewProjectFromPath(absPath string) *Project {
|
|||
return p
|
||||
}
|
||||
|
||||
// trimSrcPath trims at the end of absPaththe srcPath.
|
||||
// trimSrcPath trims at the beginning of absPath the srcPath.
|
||||
func trimSrcPath(absPath, srcPath string) string {
|
||||
relPath, err := filepath.Rel(srcPath, absPath)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue