about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-25 04:55:32 +0200
committerGitHub <noreply@github.com>2019-05-25 04:55:32 +0200
commit77afe6adf882b58b42018699885461970bae0b2e (patch)
tree88f84b95c1cc03484af88c7d038473d53e8d597b /src/libstd
parent835281fb04c9f8470ce66e1b4e97a2d940f91ae0 (diff)
parent0123fab8738db10fae52f1db1568127e602ac600 (diff)
downloadrust-77afe6adf882b58b42018699885461970bae0b2e.tar.gz
rust-77afe6adf882b58b42018699885461970bae0b2e.zip
Rollup merge of #61107 - blkerby:docs_typos, r=Centril
Fix a couple docs typos

Also add a link to env::split_paths.
Diffstat (limited to 'src/libstd')
-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>