diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-06-02 13:47:07 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-06-02 13:47:07 +0200 |
| commit | 1d9e71312167c3adf368af5b4f1d82f3d5b05dbe (patch) | |
| tree | 4b04282c2333524ebbc92aac4508942e94070ead /src | |
| parent | e752aa8b57fcf73a1b710965ab0404fe9d0975ea (diff) | |
| parent | df8d5baab7b7e9970545419c0e6bf781ea86b12c (diff) | |
Rollup merge of #33993 - oconnor663:filedocs, r=alexcrichton
document that Files close themselves automatically
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/fs.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 734f774043d..60c2a516d6a 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -32,6 +32,8 @@ use time::SystemTime; /// it was opened with. Files also implement `Seek` to alter the logical cursor /// that the file contains internally. /// +/// Files are automatically closed when they go out of scope. +/// /// # Examples /// /// ```no_run |
