Skip to content

Commit 0a30c5b

Browse files
committed
revert rustdoc links in core to use #method. because they link to alloc, which may not be available
1 parent 634d48d commit 0a30c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/ascii.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl [u8] {
3030
/// To return a new uppercased value without modifying the existing one, use
3131
/// [`to_ascii_uppercase`].
3232
///
33-
/// [`to_ascii_uppercase`]: slice::to_ascii_uppercase
33+
/// [`to_ascii_uppercase`]: #method.to_ascii_uppercase
3434
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
3535
#[inline]
3636
pub fn make_ascii_uppercase(&mut self) {
@@ -47,7 +47,7 @@ impl [u8] {
4747
/// To return a new lowercased value without modifying the existing one, use
4848
/// [`to_ascii_lowercase`].
4949
///
50-
/// [`to_ascii_lowercase`]: slice::to_ascii_lowercase
50+
/// [`to_ascii_lowercase`]: #method.to_ascii_lowercase
5151
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
5252
#[inline]
5353
pub fn make_ascii_lowercase(&mut self) {

0 commit comments

Comments
 (0)