From f2a237a9354abb841bcd5d9ce96b0daf38fcedbd Mon Sep 17 00:00:00 2001 From: Matthew Kraai Date: Thu, 15 Oct 2020 00:57:22 -0700 Subject: [PATCH 1/3] Fix link to foreign calling conventions --- library/std/src/primitive_docs.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index 81bbf376378..ae678479234 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -1118,6 +1118,8 @@ mod prim_ref {} /// For more information and a list of supported ABIs, see [the nomicon's /// section on foreign calling conventions][nomicon-abi]. /// +/// [nomicon-abi]: ../nomicon/ffi.html#foreign-calling-conventions +/// /// ### Variadic functions /// /// Extern function declarations with the "C" or "cdecl" ABIs can also be *variadic*, allowing them From 8d8554d23474b19b68533c4c9e42bac164aa6fd0 Mon Sep 17 00:00:00 2001 From: strct Date: Thu, 15 Oct 2020 16:57:19 +0200 Subject: [PATCH 2/3] Fix typo in documentation --- library/alloc/src/boxed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index 5c8c2c5a5a8..0fc81cb2193 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -815,7 +815,7 @@ impl From> for Box { #[stable(feature = "boxed_str_conv", since = "1.19.0")] impl From> for Box<[u8]> { - /// Converts a `Box>` into a `Box<[u8]>` + /// Converts a `Box` into a `Box<[u8]>` /// /// This conversion does not allocate on the heap and happens in place. /// From fce04fedd6b5ea77f9ac0d4373aa589abe3306e6 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 15 Oct 2020 17:28:42 +0200 Subject: [PATCH 3/3] Hide help button on mobile devices --- src/librustdoc/html/static/rustdoc.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 391526f0a30..3db38d60fa1 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -1544,6 +1544,14 @@ h4 > .notable-traits { left: 0; top: 100%; } + + /* We don't display the help button on mobile devices. */ + .help-button { + display: none; + } + .search-container > div { + width: calc(100% - 32px); + } } @media print {