Skip to content

Commit b2a97b9

Browse files
authored
Rollup merge of rust-lang#61107 - blkerby:docs_typos, r=Centril
Fix a couple docs typos Also add a link to env::split_paths.
2 parents a699337 + 0123fab commit b2a97b9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/libcore/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! mutate it.
1212
//!
1313
//! Shareable mutable containers exist to permit mutability in a controlled manner, even in the
14-
//! presence of aliasing. Both `Cell<T>` and `RefCell<T>` allows to do this in a single threaded
14+
//! presence of aliasing. Both `Cell<T>` and `RefCell<T>` allow doing this in a single-threaded
1515
//! way. However, neither `Cell<T>` nor `RefCell<T>` are thread safe (they do not implement
1616
//! `Sync`). If you need to do aliasing and mutation between multiple threads it is possible to
1717
//! use [`Mutex`](../../std/sync/struct.Mutex.html),

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)