@@ -1627,7 +1627,7 @@ impl<'a> From<Cow<'a, Path>> for PathBuf {
1627
1627
1628
1628
#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
1629
1629
impl From < PathBuf > for Arc < Path > {
1630
- /// Converts a Path into a Rc by copying the Path data into a new Rc buffer.
1630
+ /// Converts a `PathBuf` into an `Arc` by moving the `PathBuf` data into a new `Arc` buffer.
1631
1631
#[ inline]
1632
1632
fn from ( s : PathBuf ) -> Arc < Path > {
1633
1633
let arc: Arc < OsStr > = Arc :: from ( s. into_os_string ( ) ) ;
@@ -1637,7 +1637,7 @@ impl From<PathBuf> for Arc<Path> {
1637
1637
1638
1638
#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
1639
1639
impl From < & Path > for Arc < Path > {
1640
- /// Converts a Path into a Rc by copying the Path data into a new Rc buffer.
1640
+ /// Converts a ` Path` into an `Arc` by copying the ` Path` data into a new `Arc` buffer.
1641
1641
#[ inline]
1642
1642
fn from ( s : & Path ) -> Arc < Path > {
1643
1643
let arc: Arc < OsStr > = Arc :: from ( s. as_os_str ( ) ) ;
@@ -1647,7 +1647,7 @@ impl From<&Path> for Arc<Path> {
1647
1647
1648
1648
#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
1649
1649
impl From < PathBuf > for Rc < Path > {
1650
- /// Converts a Path into a Rc by copying the Path data into a new Rc buffer.
1650
+ /// Converts a `PathBuf` into an `Rc` by moving the `PathBuf` data into a new `Rc` buffer.
1651
1651
#[ inline]
1652
1652
fn from ( s : PathBuf ) -> Rc < Path > {
1653
1653
let rc: Rc < OsStr > = Rc :: from ( s. into_os_string ( ) ) ;
@@ -1657,7 +1657,7 @@ impl From<PathBuf> for Rc<Path> {
1657
1657
1658
1658
#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
1659
1659
impl From < & Path > for Rc < Path > {
1660
- /// Converts a Path into a Rc by copying the Path data into a new Rc buffer.
1660
+ /// Converts a ` Path` into an `Rc` by copying the ` Path` data into a new `Rc` buffer.
1661
1661
#[ inline]
1662
1662
fn from ( s : & Path ) -> Rc < Path > {
1663
1663
let rc: Rc < OsStr > = Rc :: from ( s. as_os_str ( ) ) ;
0 commit comments