Skip to content

Commit d5e2a5b

Browse files
Update src/c_string.rs
Co-authored-by: Markus Reiter <me@reitermark.us>
1 parent abec9e3 commit d5e2a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/c_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<const N: usize> CString<N> {
2929
/// // including the nul terminator.
3030
/// let empty = CString::<10>::new();
3131
///
32-
/// assert_eq!(empty.as_c_str(), <&CStr>::default());
32+
/// assert_eq!(empty.as_c_str(), c"");
3333
/// assert_eq!(empty.to_str(), Ok(""));
3434
/// ```
3535
pub fn new() -> Self {

0 commit comments

Comments
 (0)