Fix doc test

This commit is contained in:
Yota Toyama 2025-04-06 18:19:54 -07:00
parent 237ca6ce33
commit 9cd8c215bf

View File

@ -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 {