aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath
diff options
context:
space:
mode:
authorEmil Hessman <emil@hessman.se>2014-12-18 08:11:42 +0100
committerIan Lance Taylor <iant@golang.org>2014-12-18 16:05:07 +0000
commitddd666b122b327c96a845d0d0045f4c2cc12bd19 (patch)
treed14469334e2a2c83ceb28850ff9f90ed0c378741 /src/path/filepath
parentb21e936f3e88377a41f9a4216453665eed1fe9ca (diff)
downloadgo-ddd666b122b327c96a845d0d0045f4c2cc12bd19.tar.xz
path/filepath: remove named result parameter for VolumeName
Fix style by removing unnecessary named result parameter. Fix doc comment while here. Change-Id: If8394e696ab37e00a95484d5137955aa06c59520 Reviewed-on: https://go-review.googlesource.com/1781 Reviewed-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/path/filepath')
-rw-r--r--src/path/filepath/path.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path/filepath/path.go b/src/path/filepath/path.go
index d37fc9dfc8..3bde14b91e 100644
--- a/src/path/filepath/path.go
+++ b/src/path/filepath/path.go
@@ -456,9 +456,9 @@ func Dir(path string) string {
}
// VolumeName returns leading volume name.
-// Given "C:\foo\bar" it returns "C:" under windows.
+// Given "C:\foo\bar" it returns "C:" on Windows.
// Given "\\host\share\foo" it returns "\\host\share".
// On other platforms it returns "".
-func VolumeName(path string) (v string) {
+func VolumeName(path string) string {
return path[:volumeNameLen(path)]
}