File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ impl fmt::Display for CStr {
213
213
///
214
214
/// ```
215
215
/// # use kernel::c_str;
216
+ /// # use kernel::fmt;
216
217
/// # use kernel::str::CStr;
217
218
/// # use kernel::str::CString;
218
219
/// let penguin = c_str!("🐧");
@@ -241,6 +242,7 @@ impl fmt::Debug for CStr {
241
242
///
242
243
/// ```
243
244
/// # use kernel::c_str;
245
+ /// # use kernel::fmt;
244
246
/// # use kernel::str::CStr;
245
247
/// # use kernel::str::CString;
246
248
/// let penguin = c_str!("🐧");
@@ -529,7 +531,7 @@ impl fmt::Write for Formatter {
529
531
/// # Examples
530
532
///
531
533
/// ```
532
- /// use kernel::str::CString;
534
+ /// use kernel::{ str::CString, fmt} ;
533
535
///
534
536
/// let s = CString::try_from_fmt(fmt!("{}{}{}", "abc", 10, 20)).unwrap();
535
537
/// assert_eq!(s.as_bytes_with_nul(), "abc1020\0".as_bytes());
You can’t perform that action at this time.
0 commit comments