File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11
11
//! mutate it.
12
12
//!
13
13
//! 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
15
15
//! way. However, neither `Cell<T>` nor `RefCell<T>` are thread safe (they do not implement
16
16
//! `Sync`). If you need to do aliasing and mutation between multiple threads it is possible to
17
17
//! use [`Mutex`](../../std/sync/struct.Mutex.html),
Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ pub struct JoinPathsError {
465
465
/// # }
466
466
/// ```
467
467
///
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
469
469
/// variable:
470
470
///
471
471
/// ```
@@ -483,6 +483,8 @@ pub struct JoinPathsError {
483
483
/// Ok(())
484
484
/// }
485
485
/// ```
486
+ ///
487
+ /// [`env::split_paths`]: fn.split_paths.html
486
488
#[ stable( feature = "env" , since = "1.0.0" ) ]
487
489
pub fn join_paths < I , T > ( paths : I ) -> Result < OsString , JoinPathsError >
488
490
where I : IntoIterator < Item =T > , T : AsRef < OsStr >
You can’t perform that action at this time.
0 commit comments