mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-30 14:00:29 +00:00
Update src/c_string.rs
Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
parent
1d3b7b495a
commit
503262218f
@ -26,7 +26,7 @@ impl<const N: usize> CString<N> {
|
||||
/// use heapless::CString;
|
||||
///
|
||||
/// // A fixed-size `CString` that can store up to 10 characters
|
||||
/// // including the nul terminator
|
||||
/// // including the nul terminator.
|
||||
/// let empty = CString::<10>::new();
|
||||
///
|
||||
/// assert_eq!(empty.as_c_str(), <&CStr>::default());
|
||||
|
Loading…
x
Reference in New Issue
Block a user