]> Cypherpunks repositories - gostls13.git/commitdiff
io/fs: clarify that "." may only be used for root
authorIan Lance Taylor <iant@golang.org>
Sat, 2 Nov 2024 04:50:12 +0000 (21:50 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 5 Nov 2024 18:06:01 +0000 (18:06 +0000)
For #70155

Change-Id: I648791c484e19bb12c6e4f84e2dc42eaaa4db546
Reviewed-on: https://go-review.googlesource.com/c/go/+/624595
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/io/fs/fs.go

index 6583bcd7b978276e81b9c0f625d012a4fd1b3c3c..9e19e6a7973676829b5bdc3ffac6579aac6f3e28 100644 (file)
@@ -44,7 +44,7 @@ type FS interface {
 // Path names passed to open are UTF-8-encoded,
 // unrooted, slash-separated sequences of path elements, like “x/y/z”.
 // Path names must not contain an element that is “.” or “..” or the empty string,
-// except for the special case that the root directory is named “.”.
+// except for the special case that the name "." may be used for the root directory.
 // Paths must not start or end with a slash: “/x” and “x/” are invalid.
 //
 // Note that paths are slash-separated on all systems, even Windows.