Skip to content

Commit

Permalink
Mention allocation errors for open_buffered
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Oct 9, 2024
1 parent a1eceec commit 7b52e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ impl File {
///
/// # Errors
///
/// This function will return an error if `path` does not already exist.
/// This function will return an error if `path` does not already exist,
/// or if memory allocation fails for the new buffer.
/// Other errors may also be returned according to [`OpenOptions::open`].
///
/// # Examples
Expand Down

0 comments on commit 7b52e6b

Please sign in to comment.