Mention allocation errors for open_buffered

This commit is contained in:
Josh Stone 2024-10-09 12:43:23 -07:00
parent a1eceec00b
commit 7b52e6bc47

View File

@ -394,7 +394,8 @@ pub fn open<P: AsRef<Path>>(path: P) -> io::Result<File> {
/// ///
/// # Errors /// # 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`]. /// Other errors may also be returned according to [`OpenOptions::open`].
/// ///
/// # Examples /// # Examples