We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76128b3 commit c350bc1Copy full SHA for c350bc1
src/libstd/sys/windows/ext/fs.rs
@@ -42,7 +42,6 @@ pub trait FileExt {
42
///
43
/// ```
44
/// use std::io;
45
- /// use std::io::prelude::*;
46
/// use std::fs::File;
47
/// use std::os::windows::prelude::*;
48
@@ -77,7 +76,6 @@ pub trait FileExt {
77
76
/// # Examples
78
79
80
81
82
83
@@ -86,7 +84,7 @@ pub trait FileExt {
86
84
87
85
/// // Write a byte string starting 72 bytes from
88
/// // the start of the file.
89
- /// buffer.write(b"some bytes", offset)?;
+ /// buffer.seek_write(b"some bytes", 72)?;
90
/// # Ok(())
91
/// # }
92
0 commit comments