We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abec9e3 commit d5e2a5bCopy full SHA for d5e2a5b
src/c_string.rs
@@ -29,7 +29,7 @@ impl<const N: usize> CString<N> {
29
/// // including the nul terminator.
30
/// let empty = CString::<10>::new();
31
///
32
- /// assert_eq!(empty.as_c_str(), <&CStr>::default());
+ /// assert_eq!(empty.as_c_str(), c"");
33
/// assert_eq!(empty.to_str(), Ok(""));
34
/// ```
35
pub fn new() -> Self {
0 commit comments