We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c24562 commit 1301f7fCopy full SHA for 1301f7f
std/src/fs.rs
@@ -664,7 +664,7 @@ impl File {
664
/// use std::fs::File;
665
///
666
/// fn main() -> std::io::Result<()> {
667
- /// let f = File::open("foo.txt")?;
+ /// let f = File::create("foo.txt")?;
668
/// f.lock()?;
669
/// Ok(())
670
/// }
@@ -767,7 +767,7 @@ impl File {
767
768
769
770
771
/// f.try_lock()?;
772
773
0 commit comments