mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 23:04:40 +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;
|
/// use heapless::CString;
|
||||||
///
|
///
|
||||||
/// // A fixed-size `CString` that can store up to 10 characters
|
/// // A fixed-size `CString` that can store up to 10 characters
|
||||||
/// // including the nul terminator
|
/// // including the nul terminator.
|
||||||
/// let empty = CString::<10>::new();
|
/// let empty = CString::<10>::new();
|
||||||
///
|
///
|
||||||
/// assert_eq!(empty.as_c_str(), <&CStr>::default());
|
/// assert_eq!(empty.as_c_str(), <&CStr>::default());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user