about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authordaniellimws <weesoong.lim@gmail.com>2018-11-17 00:21:23 +0800
committerdaniellimws <weesoong.lim@gmail.com>2018-11-17 00:21:23 +0800
commit6e099a698699d81eb2d18bf467ca75041a78bf4c (patch)
treed9ea1de0cc54bfbf51625f503fb39086398005ad /src/liballoc
parent15334e03b757c13578d15f49c5950eab21956437 (diff)
downloadrust-6e099a698699d81eb2d18bf467ca75041a78bf4c.tar.gz
rust-6e099a698699d81eb2d18bf467ca75041a78bf4c.zip
Add double quotes to resolve error
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index 8826a836a91..1f1a4f249c7 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -481,7 +481,7 @@ impl<'a, T: Copy> From<&'a [T]> for Box<[T]> {
     /// let slice: &[u8] = &[104, 101, 108, 108, 111];
     /// let boxed_slice = Box::from(slice);
     ///
-    /// println!({:?}, boxed_slice);
+    /// println!("{:?}", boxed_slice);
     /// ```
     fn from(slice: &'a [T]) -> Box<[T]> {
         let mut boxed = unsafe { RawVec::with_capacity(slice.len()).into_box() };