Skip to content

Commit 4a811ae

Browse files
authored
Merge pull request #416 from newAM/clippy-doc-comments-string
Fix clippy lint in doctest
2 parents 11bda49 + 09b4e9e commit 4a811ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl<const N: usize> String<N> {
111111
/// let b = s.into_bytes();
112112
/// assert!(b.len() == 2);
113113
///
114-
/// assert_eq!(&['a' as u8, 'b' as u8], &b[..]);
114+
/// assert_eq!(&[b'a', b'b'], &b[..]);
115115
/// # Ok::<(), ()>(())
116116
/// ```
117117
#[inline]

0 commit comments

Comments
 (0)