about summary refs log tree commit diff
path: root/src/test/rustdoc/intra-doc/prim-methods.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-05 18:35:43 +0000
committerbors <bors@rust-lang.org>2021-12-05 18:35:43 +0000
commite2116acae59654bfab2a9729a024f3e2fd6d4b02 (patch)
treeacf2e464a8cda6c81c8bee7b12489ac8991210ba /src/test/rustdoc/intra-doc/prim-methods.rs
parent772d51f887fa407216860bf8ecf3f1a32fb795b4 (diff)
parentd7528e2157762fadb9665518fd1e4dee6d6a2809 (diff)
downloadrust-e2116acae59654bfab2a9729a024f3e2fd6d4b02.tar.gz
rust-e2116acae59654bfab2a9729a024f3e2fd6d4b02.zip
Auto merge of #91356 - GuillaumeGomez:improve-rustdoc-layout, r=jsha
Improve rustdoc layout

This is an overtake of https://github.com/rust-lang/rust/pull/89385 originally written by `@cynecx.`

I kept the original commit and simply added the missing fixes into a new one. You can test it online [here](https://rustdoc.crud.net/imperio/improve-rustdoc-layout/std/index.html).

r? `@jsha`
Diffstat (limited to 'src/test/rustdoc/intra-doc/prim-methods.rs')
-rw-r--r--src/test/rustdoc/intra-doc/prim-methods.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/rustdoc/intra-doc/prim-methods.rs b/src/test/rustdoc/intra-doc/prim-methods.rs
index a9c5d7d4247..a412a23fda8 100644
--- a/src/test/rustdoc/intra-doc/prim-methods.rs
+++ b/src/test/rustdoc/intra-doc/prim-methods.rs
@@ -1,8 +1,7 @@
 #![deny(rustdoc::broken_intra_doc_links)]
 
-
 // @has prim_methods/index.html
-// @has - '//*[@id="main"]//a[@href="{{channel}}/std/primitive.char.html"]' 'char'
-// @has - '//*[@id="main"]//a[@href="{{channel}}/std/primitive.char.html#method.len_utf8"]' 'char::len_utf8'
+// @has - '//*[@id="main-content"]//a[@href="{{channel}}/std/primitive.char.html"]' 'char'
+// @has - '//*[@id="main-content"]//a[@href="{{channel}}/std/primitive.char.html#method.len_utf8"]' 'char::len_utf8'
 
 //! A [`char`] and its [`char::len_utf8`].