Skip to content

Commit d92e8fe

Browse files
ianlancetaylorgopherbot
authored andcommitted
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent dacf253 commit d92e8fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/fs/fs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type FS interface {
4444
// Path names passed to open are UTF-8-encoded,
4545
// unrooted, slash-separated sequences of path elements, like “x/y/z”.
4646
// Path names must not contain an element that is “.” or “..” or the empty string,
47-
// except for the special case that the root directory is named “.”.
47+
// except for the special case that the name "." may be used for the root directory.
4848
// Paths must not start or end with a slash: “/x” and “x/” are invalid.
4949
//
5050
// Note that paths are slash-separated on all systems, even Windows.

0 commit comments

Comments
 (0)