]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: remove named result parameter for VolumeName
authorEmil Hessman <emil@hessman.se>
Thu, 18 Dec 2014 07:11:42 +0000 (08:11 +0100)
committerIan Lance Taylor <iant@golang.org>
Thu, 18 Dec 2014 16:05:07 +0000 (16:05 +0000)
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>
src/path/filepath/path.go

index d37fc9dfc8908f950c8b5523f33b8660e2cef13a..3bde14b91e881b153d3495f8b574147937ba000e 100644 (file)
@@ -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)]
 }