Update src/c_string.rs

Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
Yota Toyama 2025-04-11 06:42:44 +08:00 committed by GitHub
parent 1d3b7b495a
commit 503262218f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());