mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 06:50:32 +00:00
Fix doc test
This commit is contained in:
parent
237ca6ce33
commit
9cd8c215bf
@ -37,7 +37,7 @@ impl<const N: usize> CString<N> {
|
|||||||
/// // (counting the null terminator)
|
/// // (counting the null terminator)
|
||||||
/// let empty = CString::<10>::new();
|
/// let empty = CString::<10>::new();
|
||||||
///
|
///
|
||||||
/// assert_eq!(empty.as_cstr(), <&CStr>::default());
|
/// assert_eq!(empty.as_c_str(), <&CStr>::default());
|
||||||
/// assert_eq!(empty.to_str(), Ok(""));
|
/// assert_eq!(empty.to_str(), Ok(""));
|
||||||
/// ```
|
/// ```
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user