about summary refs log tree commit diff
path: root/src/libstd/os.rs
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/libstd/os.rs
parent5e0bda0448283c3045c1e96b99e90ebbc3746e12 (diff)
parentdf65f59fe9dd856c96a383c01067a176fee0dbb6 (diff)
downloadrust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.tar.gz
rust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.zip
rollup merge of #23886: demelev/remove_as_slice_usage
Diffstat (limited to 'src/libstd/os.rs')
-rw-r--r--src/libstd/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs
index e19c734b8a3..2e3f47fea86 100644
--- a/src/libstd/os.rs
+++ b/src/libstd/os.rs
@@ -311,7 +311,7 @@ pub fn split_paths<T: BytesContainer>(unparsed: T) -> Vec<Path> {
 /// let key = "PATH";
 /// let mut paths = os::getenv_as_bytes(key).map_or(Vec::new(), os::split_paths);
 /// paths.push(Path::new("/home/xyz/bin"));
-/// os::setenv(key, os::join_paths(paths.as_slice()).unwrap());
+/// os::setenv(key, os::join_paths(&paths[..]).unwrap());
 /// ```
 #[unstable(feature = "os")]
 pub fn join_paths<T: BytesContainer>(paths: &[T]) -> Result<Vec<u8>, &'static str> {