diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-25 04:55:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-25 04:55:32 +0200 |
| commit | 77afe6adf882b58b42018699885461970bae0b2e (patch) | |
| tree | 88f84b95c1cc03484af88c7d038473d53e8d597b /src/libstd | |
| parent | 835281fb04c9f8470ce66e1b4e97a2d940f91ae0 (diff) | |
| parent | 0123fab8738db10fae52f1db1568127e602ac600 (diff) | |
| download | rust-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.rs | 4 |
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> |
