about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-31 10:15:35 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-31 15:49:11 -0700
commit6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50 (patch)
treebd5aad8208dbc01ab2834d2a1e0444444ce18959 /src/liballoc
parent5e0bda0448283c3045c1e96b99e90ebbc3746e12 (diff)
parentdf65f59fe9dd856c96a383c01067a176fee0dbb6 (diff)
downloadrust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.tar.gz
rust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.zip
rollup merge of #23886: demelev/remove_as_slice_usage
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index 9b37ddc7ab5..855c86f08e7 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -110,7 +110,7 @@ use heap::deallocate;
 ///         let child_numbers = shared_numbers.clone();
 ///
 ///         thread::spawn(move || {
-///             let local_numbers = child_numbers.as_slice();
+///             let local_numbers = &child_numbers[..];
 ///
 ///             // Work with the local numbers
 ///         });