@@ -109,8 +109,6 @@ impl char {
109
109
/// `char`s. `from_u32()` will return `None` if the input is not a valid value
110
110
/// for a `char`.
111
111
///
112
- /// [`u32`]: primitive.u32.html
113
- ///
114
112
/// For an unsafe version of this function which ignores these checks, see
115
113
/// [`from_u32_unchecked`].
116
114
///
@@ -159,8 +157,6 @@ impl char {
159
157
/// `char`s. `from_u32_unchecked()` will ignore this, and blindly cast to
160
158
/// `char`, possibly creating an invalid one.
161
159
///
162
- /// [`u32`]: primitive.u32.html
163
- ///
164
160
/// # Safety
165
161
///
166
162
/// This function is unsafe, as it may construct invalid `char` values.
@@ -249,7 +245,7 @@ impl char {
249
245
/// sixteen, hexadecimal, to give some common values. Arbitrary
250
246
/// radices are supported.
251
247
///
252
- /// Compared to `is_numeric()`, this function only recognizes the characters
248
+ /// Compared to [ `is_numeric()`] , this function only recognizes the characters
253
249
/// `0-9`, `a-z` and `A-Z`.
254
250
///
255
251
/// 'Digit' is defined to be only the following characters:
@@ -258,9 +254,9 @@ impl char {
258
254
/// * `a-z`
259
255
/// * `A-Z`
260
256
///
261
- /// For a more comprehensive understanding of 'digit', see [`is_numeric`][is_numeric ].
257
+ /// For a more comprehensive understanding of 'digit', see [`is_numeric()` ].
262
258
///
263
- /// [is_numeric]: #method.is_numeric
259
+ /// [` is_numeric()` ]: #method.is_numeric
264
260
///
265
261
/// # Panics
266
262
///
@@ -483,9 +479,9 @@ impl char {
483
479
/// * Any character in the 'printable ASCII' range `0x20` .. `0x7e`
484
480
/// inclusive is not escaped.
485
481
/// * All other characters are given hexadecimal Unicode escapes; see
486
- /// [`escape_unicode`][escape_unicode] .
482
+ /// [`escape_unicode`].
487
483
///
488
- /// [escape_unicode]: #method.escape_unicode
484
+ /// [` escape_unicode` ]: #method.escape_unicode
489
485
///
490
486
/// # Examples
491
487
///
@@ -504,7 +500,6 @@ impl char {
504
500
/// println!("{}", '"'.escape_default());
505
501
/// ```
506
502
///
507
- ///
508
503
/// Both are equivalent to:
509
504
///
510
505
/// ```
@@ -584,10 +579,10 @@ impl char {
584
579
/// Returns the number of 16-bit code units this `char` would need if
585
580
/// encoded in UTF-16.
586
581
///
587
- /// See the documentation for [`len_utf8`] for more explanation of this
582
+ /// See the documentation for [`len_utf8() `] for more explanation of this
588
583
/// concept. This function is a mirror, but for UTF-16 instead of UTF-8.
589
584
///
590
- /// [`len_utf8`]: #method.len_utf8
585
+ /// [`len_utf8() `]: #method.len_utf8
591
586
///
592
587
/// # Examples
593
588
///
@@ -1075,10 +1070,10 @@ impl char {
1075
1070
/// ASCII letters 'a' to 'z' are mapped to 'A' to 'Z',
1076
1071
/// but non-ASCII letters are unchanged.
1077
1072
///
1078
- /// To uppercase the value in-place, use [`make_ascii_uppercase`].
1073
+ /// To uppercase the value in-place, use [`make_ascii_uppercase() `].
1079
1074
///
1080
1075
/// To uppercase ASCII characters in addition to non-ASCII characters, use
1081
- /// [`to_uppercase`].
1076
+ /// [`to_uppercase() `].
1082
1077
///
1083
1078
/// # Examples
1084
1079
///
@@ -1090,8 +1085,8 @@ impl char {
1090
1085
/// assert_eq!('❤', non_ascii.to_ascii_uppercase());
1091
1086
/// ```
1092
1087
///
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
1095
1090
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
1096
1091
#[ inline]
1097
1092
pub fn to_ascii_uppercase ( & self ) -> char {
@@ -1103,10 +1098,10 @@ impl char {
1103
1098
/// ASCII letters 'A' to 'Z' are mapped to 'a' to 'z',
1104
1099
/// but non-ASCII letters are unchanged.
1105
1100
///
1106
- /// To lowercase the value in-place, use [`make_ascii_lowercase`].
1101
+ /// To lowercase the value in-place, use [`make_ascii_lowercase() `].
1107
1102
///
1108
1103
/// To lowercase ASCII characters in addition to non-ASCII characters, use
1109
- /// [`to_lowercase`].
1104
+ /// [`to_lowercase() `].
1110
1105
///
1111
1106
/// # Examples
1112
1107
///
@@ -1118,8 +1113,8 @@ impl char {
1118
1113
/// assert_eq!('❤', non_ascii.to_ascii_lowercase());
1119
1114
/// ```
1120
1115
///
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
1123
1118
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
1124
1119
#[ inline]
1125
1120
pub fn to_ascii_lowercase ( & self ) -> char {
@@ -1153,7 +1148,7 @@ impl char {
1153
1148
/// but non-ASCII letters are unchanged.
1154
1149
///
1155
1150
/// To return a new uppercased value without modifying the existing one, use
1156
- /// [`to_ascii_uppercase`].
1151
+ /// [`to_ascii_uppercase() `].
1157
1152
///
1158
1153
/// # Examples
1159
1154
///
@@ -1165,7 +1160,7 @@ impl char {
1165
1160
/// assert_eq!('A', ascii);
1166
1161
/// ```
1167
1162
///
1168
- /// [`to_ascii_uppercase`]: #method.to_ascii_uppercase
1163
+ /// [`to_ascii_uppercase() `]: #method.to_ascii_uppercase
1169
1164
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
1170
1165
#[ inline]
1171
1166
pub fn make_ascii_uppercase ( & mut self ) {
@@ -1178,7 +1173,7 @@ impl char {
1178
1173
/// but non-ASCII letters are unchanged.
1179
1174
///
1180
1175
/// To return a new lowercased value without modifying the existing one, use
1181
- /// [`to_ascii_lowercase`].
1176
+ /// [`to_ascii_lowercase() `].
1182
1177
///
1183
1178
/// # Examples
1184
1179
///
@@ -1190,7 +1185,7 @@ impl char {
1190
1185
/// assert_eq!('a', ascii);
1191
1186
/// ```
1192
1187
///
1193
- /// [`to_ascii_lowercase`]: #method.to_ascii_lowercase
1188
+ /// [`to_ascii_lowercase() `]: #method.to_ascii_lowercase
1194
1189
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
1195
1190
#[ inline]
1196
1191
pub fn make_ascii_lowercase ( & mut self ) {
0 commit comments