Fix type mismatch in doctest

This commit is contained in:
Danny McGee
2023-12-19 18:08:58 -05:00
parent d7feb6c825
commit 6606e5fb5b
+1 -1
View File
@@ -781,7 +781,7 @@ impl ChannelType {
/// ChannelType::RotationX); /// ChannelType::RotationX);
/// ///
/// let err = ChannelType::from_bytes("Hello").unwrap_err(); /// let err = ChannelType::from_bytes("Hello").unwrap_err();
/// assert_eq!(err.into_inner(), "Hello"); /// assert_eq!(&err.into_inner(), b"Hello");
/// ``` /// ```
#[inline] #[inline]
pub fn from_bytes<B>(s: &B) -> Result<Self, ParseChannelError> pub fn from_bytes<B>(s: &B) -> Result<Self, ParseChannelError>