Skip to content

Commit 8eee0ef

Browse files
committed
Auto merge of #30293 - steveklabnik:fixes, r=brson
I meant to double check the work in #29429, but due to Mozlando, forgot. Here are two small fixes. r? @brson I would like to get this backported to beta as well, sorry :( I don't generally want doc backports, but feel this is exceptional and worth it.
2 parents ee597a8 + 3061f9f commit 8eee0ef

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/librustc_unicode/char.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,10 @@ impl char {
386386
/// Returns the number of 16-bit code units this `char` would need if
387387
/// encoded in UTF-16.
388388
///
389-
/// See the documentation for [`len_utf8()`][len_utf8] for more explanation
390-
/// of this concept. This function is a mirror, but for UTF-16 instead of
391-
/// UTF-8.
389+
/// See the documentation for [`len_utf8()`] for more explanation of this
390+
/// concept. This function is a mirror, but for UTF-16 instead of UTF-8.
391+
///
392+
/// [`len_utf8()`]: #method.len_utf8
392393
///
393394
/// # Examples
394395
///

src/libstd/primitive_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ mod prim_slice { }
350350
/// ```
351351
///
352352
/// [`.as_ptr()`]: #method.as_ptr
353-
/// [`len()`]: # method.len
353+
/// [`len()`]: #method.len
354354
mod prim_str { }
355355

356356
#[doc(primitive = "tuple")]

0 commit comments

Comments
 (0)