]> Cypherpunks repositories - gostls13.git/commitdiff
io/fs: document need to call File.Close
authorSean Liao <sean@liao.dev>
Sun, 6 Oct 2024 10:20:50 +0000 (11:20 +0100)
committerGopher Robot <gobot@golang.org>
Mon, 7 Oct 2024 17:51:27 +0000 (17:51 +0000)
Fixes #69723

Change-Id: Id081f68cd30abfa77a971a2370f4a0ebf330eb8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/618095
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/io/fs/fs.go

index 6891d75a0e838ad5f4b7cf97595af05d57a28214..6583bcd7b978276e81b9c0f625d012a4fd1b3c3c 100644 (file)
@@ -26,6 +26,7 @@ import (
 // correctness.
 type FS interface {
        // Open opens the named file.
+       // [File.Close] must be called to release any associated resources.
        //
        // When Open returns an error, it should be of type *PathError
        // with the Op field set to "open", the Path field set to name,