aboutsummaryrefslogtreecommitdiff
path: root/src/path/path.go
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-11-03 19:18:00 +0800
committerGopher Robot <gobot@golang.org>2023-11-23 17:33:57 +0000
commit0c7e5d3b8db6668d6bdb16410d59c0ae4133400a (patch)
treed02d1516c784e296a965261dee0c3e79e6d4e2f1 /src/path/path.go
parent3e67f46d4f7d661504d281bdedbd1432c09bd751 (diff)
downloadgo-0c7e5d3b8db6668d6bdb16410d59c0ae4133400a.tar.xz
path: add available godoc link
Change-Id: I6d40a59cde4c3f1d5094f5126fdbc1195285195f Reviewed-on: https://go-review.googlesource.com/c/go/+/539577 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/path/path.go')
-rw-r--r--src/path/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path/path.go b/src/path/path.go
index 50065ac731..5149a92c4f 100644
--- a/src/path/path.go
+++ b/src/path/path.go
@@ -214,7 +214,7 @@ func IsAbs(path string) bool {
}
// Dir returns all but the last element of path, typically the path's directory.
-// After dropping the final element using Split, the path is Cleaned and trailing
+// After dropping the final element using [Split], the path is Cleaned and trailing
// slashes are removed.
// If the path is empty, Dir returns ".".
// If the path consists entirely of slashes followed by non-slash bytes, Dir