From a8f1d3d673d85bd57c8685647cb0d8e2c699300c Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Wed, 25 Sep 2013 21:06:02 -0500 Subject: [PATCH] Fixes to std::rt::io::file documentation. The example code was not importing the right symbols. --- src/libstd/rt/io/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/rt/io/file.rs b/src/libstd/rt/io/file.rs index b11ee014af9fc..e5a2927ee8ed2 100644 --- a/src/libstd/rt/io/file.rs +++ b/src/libstd/rt/io/file.rs @@ -50,7 +50,7 @@ use path::Path; /// use std::path::Path; /// use std::rt::io::support::PathLike; /// use std::rt::io::file::open; -/// use std::rt::io::{FileMode, FileAccess}; +/// use std::rt::io::{Create, ReadWrite}; /// /// let p = &Path("/some/file/path.txt"); /// @@ -480,7 +480,7 @@ pub trait FileSystemInfo { /// ```rust /// use std; /// use std::path::Path; -/// use std::rt::io::file::{FileInfo, FileReader}; +/// use std::rt::io::Open; /// /// let f = &Path("/some/file/path.txt"); /// if f.exists() {