about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTyPR124 <t.ruckinger@gmail.com>2020-03-12 12:40:57 -0400
committerTyPR124 <t.ruckinger@gmail.com>2020-03-28 18:35:20 -0400
commitca4b40348e57c20d034b18395d9be25215e68643 (patch)
treea5ec91174446c2397396ebeda4b136c796a06da2
parent3781a1a2ac9947a02e1d38763d29a3fd752d4f6d (diff)
downloadrust-ca4b40348e57c20d034b18395d9be25215e68643.tar.gz
rust-ca4b40348e57c20d034b18395d9be25215e68643.zip
move doc links for consistency
-rw-r--r--src/libstd/ffi/os_str.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs
index 039f55a18ca..d66d471a29e 100644
--- a/src/libstd/ffi/os_str.rs
+++ b/src/libstd/ffi/os_str.rs
@@ -761,6 +761,8 @@ impl OsStr {
     ///
     /// To lowercase the value in-place, use [`make_ascii_lowercase`].
     ///
+    /// [`make_ascii_lowercase`]: #method.make_ascii_lowercase
+    ///
     /// # Examples
     ///
     /// ```
@@ -770,8 +772,6 @@ impl OsStr {
     ///
     /// 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 @@ impl OsStr {
     ///
     /// To uppercase the value in-place, use [`make_ascii_uppercase`].
     ///
+    /// [`make_ascii_uppercase`]: #method.make_ascii_uppercase
+    ///
     /// # Examples
     ///
     /// ```
@@ -794,8 +796,6 @@ impl OsStr {
     ///
     /// 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())