mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-30 22:10:37 +00:00
Format files
This commit is contained in:
parent
d435b54130
commit
acb9c07f8c
@ -67,8 +67,7 @@ impl<const N: usize> CString<N> {
|
||||
///
|
||||
/// ```rust
|
||||
/// use heapless::CString;
|
||||
/// let mut c_string =
|
||||
/// 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() };
|
||||
///
|
||||
/// assert_eq!(c_string.to_str(), Ok("string"));
|
||||
/// ```
|
||||
|
Loading…
x
Reference in New Issue
Block a user