diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-31 10:15:35 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-31 15:49:11 -0700 |
| commit | 6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50 (patch) | |
| tree | bd5aad8208dbc01ab2834d2a1e0444444ce18959 /src/libcollections/string.rs | |
| parent | 5e0bda0448283c3045c1e96b99e90ebbc3746e12 (diff) | |
| parent | df65f59fe9dd856c96a383c01067a176fee0dbb6 (diff) | |
| download | rust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.tar.gz rust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.zip | |
rollup merge of #23886: demelev/remove_as_slice_usage
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index dbf214a712b..2adece30307 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -93,7 +93,7 @@ impl String { /// ``` /// # #![feature(collections, core)] /// let s = String::from_str("hello"); - /// assert_eq!(s.as_slice(), "hello"); + /// assert_eq!(&s[..], "hello"); /// ``` #[inline] #[unstable(feature = "collections", |
