Skip to content

Commit 6e099a6

Browse files
committed
Add double quotes to resolve error
1 parent 15334e0 commit 6e099a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/boxed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ impl<'a, T: Copy> From<&'a [T]> for Box<[T]> {
481481
/// let slice: &[u8] = &[104, 101, 108, 108, 111];
482482
/// let boxed_slice = Box::from(slice);
483483
///
484-
/// println!({:?}, boxed_slice);
484+
/// println!("{:?}", boxed_slice);
485485
/// ```
486486
fn from(slice: &'a [T]) -> Box<[T]> {
487487
let mut boxed = unsafe { RawVec::with_capacity(slice.len()).into_box() };

0 commit comments

Comments
 (0)