@@ -109,8 +109,6 @@ impl char {
109109 /// `char`s. `from_u32()` will return `None` if the input is not a valid value
110110 /// for a `char`.
111111 ///
112- /// [`u32`]: primitive.u32.html
113- ///
114112 /// For an unsafe version of this function which ignores these checks, see
115113 /// [`from_u32_unchecked`].
116114 ///
@@ -159,8 +157,6 @@ impl char {
159157 /// `char`s. `from_u32_unchecked()` will ignore this, and blindly cast to
160158 /// `char`, possibly creating an invalid one.
161159 ///
162- /// [`u32`]: primitive.u32.html
163- ///
164160 /// # Safety
165161 ///
166162 /// This function is unsafe, as it may construct invalid `char` values.
@@ -249,7 +245,7 @@ impl char {
249245 /// sixteen, hexadecimal, to give some common values. Arbitrary
250246 /// radices are supported.
251247 ///
252- /// Compared to `is_numeric()`, this function only recognizes the characters
248+ /// Compared to [ `is_numeric()`] , this function only recognizes the characters
253249 /// `0-9`, `a-z` and `A-Z`.
254250 ///
255251 /// 'Digit' is defined to be only the following characters:
@@ -258,9 +254,9 @@ impl char {
258254 /// * `a-z`
259255 /// * `A-Z`
260256 ///
261- /// For a more comprehensive understanding of 'digit', see [`is_numeric`][is_numeric ].
257+ /// For a more comprehensive understanding of 'digit', see [`is_numeric()` ].
262258 ///
263- /// [is_numeric]: #method.is_numeric
259+ /// [` is_numeric()` ]: #method.is_numeric
264260 ///
265261 /// # Panics
266262 ///
@@ -483,9 +479,9 @@ impl char {
483479 /// * Any character in the 'printable ASCII' range `0x20` .. `0x7e`
484480 /// inclusive is not escaped.
485481 /// * All other characters are given hexadecimal Unicode escapes; see
486- /// [`escape_unicode`][escape_unicode] .
482+ /// [`escape_unicode`].
487483 ///
488- /// [escape_unicode]: #method.escape_unicode
484+ /// [` escape_unicode` ]: #method.escape_unicode
489485 ///
490486 /// # Examples
491487 ///
@@ -504,7 +500,6 @@ impl char {
504500 /// println!("{}", '"'.escape_default());
505501 /// ```
506502 ///
507- ///
508503 /// Both are equivalent to:
509504 ///
510505 /// ```
@@ -584,10 +579,10 @@ impl char {
584579 /// Returns the number of 16-bit code units this `char` would need if
585580 /// encoded in UTF-16.
586581 ///
587- /// See the documentation for [`len_utf8`] for more explanation of this
582+ /// See the documentation for [`len_utf8() `] for more explanation of this
588583 /// concept. This function is a mirror, but for UTF-16 instead of UTF-8.
589584 ///
590- /// [`len_utf8`]: #method.len_utf8
585+ /// [`len_utf8() `]: #method.len_utf8
591586 ///
592587 /// # Examples
593588 ///
@@ -1075,10 +1070,10 @@ impl char {
10751070 /// ASCII letters 'a' to 'z' are mapped to 'A' to 'Z',
10761071 /// but non-ASCII letters are unchanged.
10771072 ///
1078- /// To uppercase the value in-place, use [`make_ascii_uppercase`].
1073+ /// To uppercase the value in-place, use [`make_ascii_uppercase() `].
10791074 ///
10801075 /// To uppercase ASCII characters in addition to non-ASCII characters, use
1081- /// [`to_uppercase`].
1076+ /// [`to_uppercase() `].
10821077 ///
10831078 /// # Examples
10841079 ///
@@ -1090,8 +1085,8 @@ impl char {
10901085 /// assert_eq!('❤', non_ascii.to_ascii_uppercase());
10911086 /// ```
10921087 ///
1093- /// [`make_ascii_uppercase`]: #method.make_ascii_uppercase
1094- /// [`to_uppercase`]: #method.to_uppercase
1088+ /// [`make_ascii_uppercase() `]: #method.make_ascii_uppercase
1089+ /// [`to_uppercase() `]: #method.to_uppercase
10951090 #[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
10961091 #[ inline]
10971092 pub fn to_ascii_uppercase ( & self ) -> char {
@@ -1103,10 +1098,10 @@ impl char {
11031098 /// ASCII letters 'A' to 'Z' are mapped to 'a' to 'z',
11041099 /// but non-ASCII letters are unchanged.
11051100 ///
1106- /// To lowercase the value in-place, use [`make_ascii_lowercase`].
1101+ /// To lowercase the value in-place, use [`make_ascii_lowercase() `].
11071102 ///
11081103 /// To lowercase ASCII characters in addition to non-ASCII characters, use
1109- /// [`to_lowercase`].
1104+ /// [`to_lowercase() `].
11101105 ///
11111106 /// # Examples
11121107 ///
@@ -1118,8 +1113,8 @@ impl char {
11181113 /// assert_eq!('❤', non_ascii.to_ascii_lowercase());
11191114 /// ```
11201115 ///
1121- /// [`make_ascii_lowercase`]: #method.make_ascii_lowercase
1122- /// [`to_lowercase`]: #method.to_lowercase
1116+ /// [`make_ascii_lowercase() `]: #method.make_ascii_lowercase
1117+ /// [`to_lowercase() `]: #method.to_lowercase
11231118 #[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
11241119 #[ inline]
11251120 pub fn to_ascii_lowercase ( & self ) -> char {
@@ -1153,7 +1148,7 @@ impl char {
11531148 /// but non-ASCII letters are unchanged.
11541149 ///
11551150 /// To return a new uppercased value without modifying the existing one, use
1156- /// [`to_ascii_uppercase`].
1151+ /// [`to_ascii_uppercase() `].
11571152 ///
11581153 /// # Examples
11591154 ///
@@ -1165,7 +1160,7 @@ impl char {
11651160 /// assert_eq!('A', ascii);
11661161 /// ```
11671162 ///
1168- /// [`to_ascii_uppercase`]: #method.to_ascii_uppercase
1163+ /// [`to_ascii_uppercase() `]: #method.to_ascii_uppercase
11691164 #[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
11701165 #[ inline]
11711166 pub fn make_ascii_uppercase ( & mut self ) {
@@ -1178,7 +1173,7 @@ impl char {
11781173 /// but non-ASCII letters are unchanged.
11791174 ///
11801175 /// To return a new lowercased value without modifying the existing one, use
1181- /// [`to_ascii_lowercase`].
1176+ /// [`to_ascii_lowercase() `].
11821177 ///
11831178 /// # Examples
11841179 ///
@@ -1190,7 +1185,7 @@ impl char {
11901185 /// assert_eq!('a', ascii);
11911186 /// ```
11921187 ///
1193- /// [`to_ascii_lowercase`]: #method.to_ascii_lowercase
1188+ /// [`to_ascii_lowercase() `]: #method.to_ascii_lowercase
11941189 #[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
11951190 #[ inline]
11961191 pub fn make_ascii_lowercase ( & mut self ) {
0 commit comments