Skip to content

Commit 0123fab

Browse files
committed
Fix typo "spit_paths", add link
1 parent d3c73dd commit 0123fab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/env.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ pub struct JoinPathsError {
465465
/// # }
466466
/// ```
467467
///
468-
/// Using `env::join_paths` with `env::spit_paths` to append an item to the `PATH` environment
468+
/// Using `env::join_paths` with [`env::split_paths`] to append an item to the `PATH` environment
469469
/// variable:
470470
///
471471
/// ```
@@ -483,6 +483,8 @@ pub struct JoinPathsError {
483483
/// Ok(())
484484
/// }
485485
/// ```
486+
///
487+
/// [`env::split_paths`]: fn.split_paths.html
486488
#[stable(feature = "env", since = "1.0.0")]
487489
pub fn join_paths<I, T>(paths: I) -> Result<OsString, JoinPathsError>
488490
where I: IntoIterator<Item=T>, T: AsRef<OsStr>

0 commit comments

Comments
 (0)