Fix typo "spit_paths", add link

This commit is contained in:
Brent Kerby 2019-05-23 19:35:27 -06:00
parent d3c73ddec9
commit 0123fab873
1 changed files with 3 additions and 1 deletions

View File

@ -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>