Mention allocation errors for open_buffered · qinheping/verify-rust-std@db9377d (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit db9377d

Mention allocation errors for open_buffered

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -394,7 +394,8 @@ impl File {
394 394 ///
395 395 /// # Errors
396 396 ///
397 - /// This function will return an error if `path` does not already exist.
397 + /// This function will return an error if `path` does not already exist,
398 + /// or if memory allocation fails for the new buffer.
398 399 /// Other errors may also be returned according to [`OpenOptions::open`].
399 400 ///
400 401 /// # Examples