diff --git a/library/core/src/char/convert.rs b/library/core/src/char/convert.rs index 139841368d6a1..4ee0310b361fb 100644 --- a/library/core/src/char/convert.rs +++ b/library/core/src/char/convert.rs @@ -218,6 +218,8 @@ impl const From for char { } /// An error which can be returned when parsing a char. +/// +/// This `struct` is created when using the [`char::from_str`] method. #[stable(feature = "char_from_str", since = "1.20.0")] #[derive(Clone, Debug, PartialEq, Eq)] pub struct ParseCharError { @@ -300,7 +302,10 @@ impl TryFrom for char { } } -/// The error type returned when a conversion from u32 to char fails. +/// The error type returned when a conversion from [`prim@u32`] to [`prim@char`] fails. +/// +/// This `struct` is created by the [`char::try_from`](char#impl-TryFrom) method. +/// See its documentation for more. #[stable(feature = "try_from", since = "1.34.0")] #[derive(Copy, Clone, Debug, PartialEq, Eq)] pub struct CharTryFromError(());