Skip to content

Commit f5e7dbb

Browse files
committed
Add a few missing links, fix a typo
1 parent e7821e5 commit f5e7dbb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

library/std/src/ffi/os_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ impl From<Cow<'_, OsStr>> for Box<OsStr> {
858858

859859
#[stable(feature = "os_string_from_box", since = "1.18.0")]
860860
impl From<Box<OsStr>> for OsString {
861-
/// Converts a [`Box`]`<`[`OsStr`]`>` into a `OsString` without copying or
861+
/// Converts a [`Box`]`<`[`OsStr`]`>` into an [`OsString`] without copying or
862862
/// allocating.
863863
#[inline]
864864
fn from(boxed: Box<OsStr>) -> OsString {

library/std/src/path.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ impl<T: ?Sized + AsRef<OsStr>> From<&T> for PathBuf {
14671467

14681468
#[stable(feature = "rust1", since = "1.0.0")]
14691469
impl From<OsString> for PathBuf {
1470-
/// Converts a `OsString` into a `PathBuf`
1470+
/// Converts a [`OsString`] into a [`PathBuf`]
14711471
///
14721472
/// This conversion does not allocate or copy memory.
14731473
#[inline]
@@ -1478,7 +1478,7 @@ impl From<OsString> for PathBuf {
14781478

14791479
#[stable(feature = "from_path_buf_for_os_string", since = "1.14.0")]
14801480
impl From<PathBuf> for OsString {
1481-
/// Converts a `PathBuf` into a `OsString`
1481+
/// Converts a [`PathBuf`] into a [`OsString`]
14821482
///
14831483
/// This conversion does not allocate or copy memory.
14841484
#[inline]
@@ -1489,7 +1489,7 @@ impl From<PathBuf> for OsString {
14891489

14901490
#[stable(feature = "rust1", since = "1.0.0")]
14911491
impl From<String> for PathBuf {
1492-
/// Converts a `String` into a `PathBuf`
1492+
/// Converts a [`String`] into a [`PathBuf`]
14931493
///
14941494
/// This conversion does not allocate or copy memory.
14951495
#[inline]
@@ -1595,7 +1595,7 @@ impl<'a> From<Cow<'a, Path>> for PathBuf {
15951595

15961596
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
15971597
impl From<PathBuf> for Arc<Path> {
1598-
/// Converts a `PathBuf` into an `Arc` by moving the `PathBuf` data into a new `Arc` buffer.
1598+
/// Converts a [`PathBuf`] into an [`Arc`] by moving the [`PathBuf`] data into a new [`Arc`] buffer.
15991599
#[inline]
16001600
fn from(s: PathBuf) -> Arc<Path> {
16011601
let arc: Arc<OsStr> = Arc::from(s.into_os_string());
@@ -1605,7 +1605,7 @@ impl From<PathBuf> for Arc<Path> {
16051605

16061606
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
16071607
impl From<&Path> for Arc<Path> {
1608-
/// Converts a `Path` into an `Arc` by copying the `Path` data into a new `Arc` buffer.
1608+
/// Converts a [`Path`] into an [`Arc`] by copying the [`Path`] data into a new [`Arc`] buffer.
16091609
#[inline]
16101610
fn from(s: &Path) -> Arc<Path> {
16111611
let arc: Arc<OsStr> = Arc::from(s.as_os_str());
@@ -1615,7 +1615,7 @@ impl From<&Path> for Arc<Path> {
16151615

16161616
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
16171617
impl From<PathBuf> for Rc<Path> {
1618-
/// Converts a `PathBuf` into an `Rc` by moving the `PathBuf` data into a new `Rc` buffer.
1618+
/// Converts a [`PathBuf`] into an [`Rc`] by moving the [`PathBuf`] data into a new `Rc` buffer.
16191619
#[inline]
16201620
fn from(s: PathBuf) -> Rc<Path> {
16211621
let rc: Rc<OsStr> = Rc::from(s.into_os_string());
@@ -1625,7 +1625,7 @@ impl From<PathBuf> for Rc<Path> {
16251625

16261626
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
16271627
impl From<&Path> for Rc<Path> {
1628-
/// Converts a `Path` into an `Rc` by copying the `Path` data into a new `Rc` buffer.
1628+
/// Converts a [`Path`] into an [`Rc`] by copying the [`Path`] data into a new `Rc` buffer.
16291629
#[inline]
16301630
fn from(s: &Path) -> Rc<Path> {
16311631
let rc: Rc<OsStr> = Rc::from(s.as_os_str());

0 commit comments

Comments
 (0)