Skip to content

Commit 1d9e713

Browse files
Rollup merge of rust-lang#33993 - oconnor663:filedocs, r=alexcrichton
document that Files close themselves automatically
2 parents e752aa8 + df8d5ba commit 1d9e713

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/fs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ 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.
36+
///
3537
/// # Examples
3638
///
3739
/// ```no_run

0 commit comments

Comments
 (0)