about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrent Kerby <blkerby@gmail.com>2019-05-23 19:35:27 -0600
committerBrent Kerby <blkerby@gmail.com>2019-05-23 19:38:23 -0600
commit0123fab8738db10fae52f1db1568127e602ac600 (patch)
tree60aaa66c0d364340653697f236a4590f9315dd50
parentd3c73ddec9f657b7856e6328ed07d7ec0f6e4ff5 (diff)
downloadrust-0123fab8738db10fae52f1db1568127e602ac600.tar.gz
rust-0123fab8738db10fae52f1db1568127e602ac600.zip
Fix typo "spit_paths", add link
-rw-r--r--src/libstd/env.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index 9058ea93d6d..00e840a53e9 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -465,7 +465,7 @@ pub struct JoinPathsError {
 /// # }
 /// ```
 ///
-/// Using `env::join_paths` with `env::spit_paths` to append an item to the `PATH` environment
+/// Using `env::join_paths` with [`env::split_paths`] to append an item to the `PATH` environment
 /// variable:
 ///
 /// ```
@@ -483,6 +483,8 @@ pub struct JoinPathsError {
 ///     Ok(())
 /// }
 /// ```
+///
+/// [`env::split_paths`]: fn.split_paths.html
 #[stable(feature = "env", since = "1.0.0")]
 pub fn join_paths<I, T>(paths: I) -> Result<OsString, JoinPathsError>
     where I: IntoIterator<Item=T>, T: AsRef<OsStr>