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);
///
/// let err = ChannelType::from_bytes("Hello").unwrap_err();
/// assert_eq!(err.into_inner(), "Hello");
/// assert_eq!(&err.into_inner(), b"Hello");
/// ```
#[inline]
pub fn from_bytes<B>(s: &B) -> Result<Self, ParseChannelError>