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 0f343c6 commit 4d07c7fCopy full SHA for 4d07c7f
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