diff options
| -rw-r--r-- | src/librustc_unicode/char.rs | 7 | ||||
| -rw-r--r-- | src/libstd/primitive_docs.rs | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index 3824dd0e436..455e2feee4c 100644 --- a/src/librustc_unicode/char.rs +++ b/src/librustc_unicode/char.rs @@ -386,9 +386,10 @@ impl char { /// Returns the number of 16-bit code units this `char` would need if /// encoded in UTF-16. /// - /// See the documentation for [`len_utf8()`][len_utf8] for more explanation - /// of this concept. This function is a mirror, but for UTF-16 instead of - /// UTF-8. + /// See the documentation for [`len_utf8()`] for more explanation of this + /// concept. This function is a mirror, but for UTF-16 instead of UTF-8. + /// + /// [`len_utf8()`]: #method.len_utf8 /// /// # Examples /// diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index fd422d3b397..afeb4231aba 100644 --- a/src/libstd/primitive_docs.rs +++ b/src/libstd/primitive_docs.rs @@ -350,7 +350,7 @@ mod prim_slice { } /// ``` /// /// [`.as_ptr()`]: #method.as_ptr -/// [`len()`]: # method.len +/// [`len()`]: #method.len mod prim_str { } #[doc(primitive = "tuple")] |
