1
Fork 0

move doc links for consistency

This commit is contained in:
TyPR124 2020-03-12 12:40:57 -04:00
parent 3781a1a2ac
commit ca4b40348e

View file

@ -761,6 +761,8 @@ impl OsStr {
/// ///
/// To lowercase the value in-place, use [`make_ascii_lowercase`]. /// To lowercase the value in-place, use [`make_ascii_lowercase`].
/// ///
/// [`make_ascii_lowercase`]: #method.make_ascii_lowercase
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -770,8 +772,6 @@ impl OsStr {
/// ///
/// assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase()); /// assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
/// ``` /// ```
///
/// [`make_ascii_lowercase`]: #method.make_ascii_lowercase
#[unstable(feature = "osstring_ascii", issue = "none")] #[unstable(feature = "osstring_ascii", issue = "none")]
pub fn to_ascii_lowercase(&self) -> OsString { pub fn to_ascii_lowercase(&self) -> OsString {
OsString::from_inner(self.inner.to_ascii_lowercase()) OsString::from_inner(self.inner.to_ascii_lowercase())
@ -785,6 +785,8 @@ impl OsStr {
/// ///
/// To uppercase the value in-place, use [`make_ascii_uppercase`]. /// To uppercase the value in-place, use [`make_ascii_uppercase`].
/// ///
/// [`make_ascii_uppercase`]: #method.make_ascii_uppercase
///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
@ -794,8 +796,6 @@ impl OsStr {
/// ///
/// assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase()); /// assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
/// ``` /// ```
///
/// [`make_ascii_uppercase`]: #method.make_ascii_uppercase
#[unstable(feature = "osstring_ascii", issue = "none")] #[unstable(feature = "osstring_ascii", issue = "none")]
pub fn to_ascii_uppercase(&self) -> OsString { pub fn to_ascii_uppercase(&self) -> OsString {
OsString::from_inner(self.inner.to_ascii_uppercase()) OsString::from_inner(self.inner.to_ascii_uppercase())