File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 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),
Original file line number Diff line number Diff 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" ) ]
487489pub fn join_paths < I , T > ( paths : I ) -> Result < OsString , JoinPathsError >
488490 where I : IntoIterator < Item =T > , T : AsRef < OsStr >
You can’t perform that action at this time.
0 commit comments