diff options
| author | Ian Lance Taylor <iant@golang.org> | 2024-11-01 21:50:12 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-11-05 18:06:01 +0000 |
| commit | d92e8fe25cd617257942e564c16ce367de46640b (patch) | |
| tree | d8f48c8e268fa4857a93ff8d7750fd88574e5b10 /src | |
| parent | dacf253afa7e87cc913f8e25d6870b9e8d62a606 (diff) | |
| download | go-d92e8fe25cd617257942e564c16ce367de46640b.tar.xz | |
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 <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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/io/fs/fs.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
