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 d435b54 commit acb9c07Copy full SHA for acb9c07
src/c_string.rs
@@ -67,8 +67,7 @@ impl<const N: usize> CString<N> {
67
///
68
/// ```rust
69
/// use heapless::CString;
70
- /// let mut c_string =
71
- /// unsafe { CString::<7>::from_bytes_with_nul_unchecked(b"string\0").unwrap() };
+ /// let mut c_string = unsafe { CString::<7>::from_bytes_with_nul_unchecked(b"string\0").unwrap() };
72
73
/// assert_eq!(c_string.to_str(), Ok("string"));
74
/// ```
0 commit comments