aboutsummaryrefslogtreecommitdiff
path: root/imports
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2018-04-23 13:21:01 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2018-04-23 20:32:37 +0000
commitc1def519f03ddf76f16b3e444ee1095d73afa01b (patch)
tree2d526263fb1cd1511c8f2336a0b9bda377c7e1a4 /imports
parent81527693ec4d570943ba3e1e8ffc2c54c2eb5647 (diff)
downloadgolang-x-tools-c1def519f03ddf76f16b3e444ee1095d73afa01b.tar.gz
imports: improve VendorlessPath docs
Eliminate Latin, lest someone complain "it's Greek to me". This work supported by Sourcegraph, though perhaps not the commit message. Change-Id: Ia44eaf5bc5adb6624b590c9cfdfe8083d1414a2c Reviewed-on: https://go-review.googlesource.com/108937 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'imports')
-rw-r--r--imports/fix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/imports/fix.go b/imports/fix.go
index b164ca53a..aacb1bd5d 100644
--- a/imports/fix.go
+++ b/imports/fix.go
@@ -683,8 +683,8 @@ func scanGoDirs(goRoot bool) {
}
}
-// VendorlessPath returns the devendorized version of the provided import path.
-// e.g. "foo/bar/vendor/a/b" => "a/b"
+// VendorlessPath returns the devendorized version of the import path ipath.
+// For example, VendorlessPath("foo/bar/vendor/a/b") returns "a/b".
func VendorlessPath(ipath string) string {
// Devendorize for use in import statement.
if i := strings.LastIndex(ipath, "/vendor/"); i >= 0 {