Skip to content

Commit 8be9625

Browse files
committed
document that Files close themselves automatically
1 parent 298730e commit 8be9625

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstd/fs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ use time::SystemTime;
3232
/// it was opened with. Files also implement `Seek` to alter the logical cursor
3333
/// that the file contains internally.
3434
///
35+
/// Files are automatically closed when they go out of scope, so there is no
36+
/// explicit `close` method.
37+
///
3538
/// # Examples
3639
///
3740
/// ```no_run

0 commit comments

Comments
 (0)