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.
2 parents b50aaa1 + cc9d063 commit 8ee8044Copy full SHA for 8ee8044
std/src/fs.rs
@@ -394,7 +394,8 @@ impl File {
394
///
395
/// # Errors
396
397
- /// This function will return an error if `path` does not already exist.
+ /// This function will return an error if `path` does not already exist,
398
+ /// or if memory allocation fails for the new buffer.
399
/// Other errors may also be returned according to [`OpenOptions::open`].
400
401
/// # Examples
0 commit comments