From d92e8fe25cd617257942e564c16ce367de46640b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 1 Nov 2024 21:50:12 -0700 Subject: [PATCH] io/fs: clarify that "." may only be used for root For #70155 Change-Id: I648791c484e19bb12c6e4f84e2dc42eaaa4db546 Reviewed-on: https://go-review.googlesource.com/c/go/+/624595 Reviewed-by: Damien Neil LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: David Chase --- src/io/fs/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/fs/fs.go b/src/io/fs/fs.go index 6583bcd7b9..9e19e6a797 100644 --- a/src/io/fs/fs.go +++ b/src/io/fs/fs.go @@ -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. -- 2.48.1