From 77882c9cba4b85cc53547f6ab6056ad7e26a8dab Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 9 Dec 2015 15:52:04 -0500 Subject: [PATCH 1/2] Fix extra space in str docs --- src/libstd/primitive_docs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index fd422d3b39717..afeb4231aba48 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")] From 3061f9f5734107c859f987d504c191a724215e8e Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 9 Dec 2015 15:58:49 -0500 Subject: [PATCH 2/2] Fix link in char docs --- src/librustc_unicode/char.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index 3824dd0e4368c..455e2feee4c2f 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 ///