diff options
| author | Jack O'Connor <oconnor663@gmail.com> | 2016-05-31 17:12:08 -0400 |
|---|---|---|
| committer | Jack O'Connor <oconnor663@gmail.com> | 2016-05-31 17:12:08 -0400 |
| commit | 8be9625e2e65df6c7174272f78893394fca209e1 (patch) | |
| tree | bfc6b7b37000d05b4819c37734bcd18f52356e2c /src/libstd | |
| parent | 298730e7032cd55809423773da397cd5c7d827d4 (diff) | |
| download | rust-8be9625e2e65df6c7174272f78893394fca209e1.tar.gz rust-8be9625e2e65df6c7174272f78893394fca209e1.zip | |
document that Files close themselves automatically
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 734f774043d..fcc84e54842 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -32,6 +32,9 @@ 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, so there is no +/// explicit `close` method. +/// /// # Examples /// /// ```no_run |
