Skip to content

Commit 897d278

Browse files
committed
libstd: Fix typos in doc
1 parent 122fefc commit 897d278

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/path.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ impl<'a> From<Cow<'a, Path>> for PathBuf {
16271627

16281628
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
16291629
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.
16311631
#[inline]
16321632
fn from(s: PathBuf) -> Arc<Path> {
16331633
let arc: Arc<OsStr> = Arc::from(s.into_os_string());
@@ -1637,7 +1637,7 @@ impl From<PathBuf> for Arc<Path> {
16371637

16381638
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
16391639
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.
16411641
#[inline]
16421642
fn from(s: &Path) -> Arc<Path> {
16431643
let arc: Arc<OsStr> = Arc::from(s.as_os_str());
@@ -1647,7 +1647,7 @@ impl From<&Path> for Arc<Path> {
16471647

16481648
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
16491649
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.
16511651
#[inline]
16521652
fn from(s: PathBuf) -> Rc<Path> {
16531653
let rc: Rc<OsStr> = Rc::from(s.into_os_string());
@@ -1657,7 +1657,7 @@ impl From<PathBuf> for Rc<Path> {
16571657

16581658
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
16591659
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.
16611661
#[inline]
16621662
fn from(s: &Path) -> Rc<Path> {
16631663
let rc: Rc<OsStr> = Rc::from(s.as_os_str());

0 commit comments

Comments
 (0)