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.
1 parent b42d648 commit 2b4ffa7Copy full SHA for 2b4ffa7
library/std/src/io/error.rs
@@ -79,7 +79,7 @@ impl fmt::Debug for Error {
79
#[cfg(not(bootstrap))]
80
#[stable(feature = "rust1", since = "1.0.0")]
81
impl From<alloc::ffi::NulError> for Error {
82
- /// Converts a [`alloc::ffi::NulError`] into a [`io::Error`].
+ /// Converts a [`alloc::ffi::NulError`] into a [`Error`].
83
fn from(_: alloc::ffi::NulError) -> Error {
84
const_io_error!(ErrorKind::InvalidInput, "data provided contains a nul byte")
85
}
0 commit comments