Skip to content

Commit c350bc1

Browse files
committed
Fix documentation tests in windows::fs
1 parent 76128b3 commit c350bc1

File tree

1 file changed

+1
-3
lines changed
  • src/libstd/sys/windows/ext

1 file changed

+1
-3
lines changed

src/libstd/sys/windows/ext/fs.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ pub trait FileExt {
4242
///
4343
/// ```
4444
/// use std::io;
45-
/// use std::io::prelude::*;
4645
/// use std::fs::File;
4746
/// use std::os::windows::prelude::*;
4847
///
@@ -77,7 +76,6 @@ pub trait FileExt {
7776
/// # Examples
7877
///
7978
/// ```
80-
/// use std::io::prelude::*;
8179
/// use std::fs::File;
8280
/// use std::os::windows::prelude::*;
8381
///
@@ -86,7 +84,7 @@ pub trait FileExt {
8684
///
8785
/// // Write a byte string starting 72 bytes from
8886
/// // the start of the file.
89-
/// buffer.write(b"some bytes", offset)?;
87+
/// buffer.seek_write(b"some bytes", 72)?;
9088
/// # Ok(())
9189
/// # }
9290
/// ```

0 commit comments

Comments
 (0)