We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
open_buffered
1 parent a1eceec commit 7b52e6bCopy full SHA for 7b52e6b
library/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