diff options
| author | daniellimws <weesoong.lim@gmail.com> | 2018-11-17 00:21:23 +0800 |
|---|---|---|
| committer | daniellimws <weesoong.lim@gmail.com> | 2018-11-17 00:21:23 +0800 |
| commit | 6e099a698699d81eb2d18bf467ca75041a78bf4c (patch) | |
| tree | d9ea1de0cc54bfbf51625f503fb39086398005ad /src/liballoc | |
| parent | 15334e03b757c13578d15f49c5950eab21956437 (diff) | |
| download | rust-6e099a698699d81eb2d18bf467ca75041a78bf4c.tar.gz rust-6e099a698699d81eb2d18bf467ca75041a78bf4c.zip | |
Add double quotes to resolve error
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 2 |
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() }; |
