diff options
| author | David LeGare <excaliburhissheath@gmail.com> | 2017-05-07 10:35:45 -0500 |
|---|---|---|
| committer | David LeGare <excaliburhissheath@gmail.com> | 2017-05-07 10:35:45 -0500 |
| commit | c350bc17eedc776eacf194472107ec82756b204a (patch) | |
| tree | a8966f944264e245eece2dcfd74a444924b47dc7 /src/libstd/sys | |
| parent | 76128b32ccaed5576331ec10e8bdf2c5919978d5 (diff) | |
| download | rust-c350bc17eedc776eacf194472107ec82756b204a.tar.gz rust-c350bc17eedc776eacf194472107ec82756b204a.zip | |
Fix documentation tests in windows::fs
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/ext/fs.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/sys/windows/ext/fs.rs b/src/libstd/sys/windows/ext/fs.rs index d49c884cb9f..c4ec75d32e4 100644 --- a/src/libstd/sys/windows/ext/fs.rs +++ b/src/libstd/sys/windows/ext/fs.rs @@ -42,7 +42,6 @@ pub trait FileExt { /// /// ``` /// use std::io; - /// use std::io::prelude::*; /// use std::fs::File; /// use std::os::windows::prelude::*; /// @@ -77,7 +76,6 @@ pub trait FileExt { /// # Examples /// /// ``` - /// use std::io::prelude::*; /// use std::fs::File; /// use std::os::windows::prelude::*; /// @@ -86,7 +84,7 @@ pub trait FileExt { /// /// // Write a byte string starting 72 bytes from /// // the start of the file. - /// buffer.write(b"some bytes", offset)?; + /// buffer.seek_write(b"some bytes", 72)?; /// # Ok(()) /// # } /// ``` |
