aboutsummaryrefslogtreecommitdiff
path: root/src/io/fs/fs.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/fs/fs.go')
-rw-r--r--src/io/fs/fs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io/fs/fs.go b/src/io/fs/fs.go
index b691a860498..c330f123ad1 100644
--- a/src/io/fs/fs.go
+++ b/src/io/fs/fs.go
@@ -36,6 +36,7 @@ type FS interface {
// sequences of path elements, like “x/y/z”.
// Path names must not contain a “.” or “..” or empty element,
// except for the special case that the root directory is named “.”.
+// Leading and trailing slashes (like “/x” or “x/”) are not allowed.
//
// Paths are slash-separated on all systems, even Windows.
// Backslashes must not appear in path names.