]> git.lizzy.rs Git - rust.git/commitdiff
move doc links for consistency
authorTyPR124 <t.ruckinger@gmail.com>
Thu, 12 Mar 2020 16:40:57 +0000 (12:40 -0400)
committerTyPR124 <t.ruckinger@gmail.com>
Sat, 28 Mar 2020 22:35:20 +0000 (18:35 -0400)
src/libstd/ffi/os_str.rs

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