diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-06 22:36:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-06 22:36:51 +0200 |
| commit | d33180e1d77f92c0cc8d3302fa5bb75cc090417f (patch) | |
| tree | 0b26ae8134af38fc8661b02688eab8344fc928c4 /src/test/rustdoc/struct-implementations-title.rs | |
| parent | f7c3b0ce9a8c33069610d2b19f6d149076138cb0 (diff) | |
| parent | a64d643956c3cfc90632951ae7ec2b3b84d04c1f (diff) | |
Rollup merge of #71918 - GuillaumeGomez:rename-methods-section, r=Dylan-DPC
Rename methods section Fixes https://github.com/rust-lang/rust/issues/70475. It renames the section [methods](https://doc.rust-lang.org/nightly/std/string/struct.String.html#methods) into "Implementations". However, I didn't not update the title in the sidebar considering that it only lists methods under (even though I updated the link of the "methods" to make it point to the "implementations" section. r? @kinnison cc @rust-lang/rustdoc
Diffstat (limited to 'src/test/rustdoc/struct-implementations-title.rs')
| -rw-r--r-- | src/test/rustdoc/struct-implementations-title.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc/struct-implementations-title.rs b/src/test/rustdoc/struct-implementations-title.rs new file mode 100644 index 00000000000..96eb11311d6 --- /dev/null +++ b/src/test/rustdoc/struct-implementations-title.rs @@ -0,0 +1,9 @@ +#![crate_name = "foo"] + +pub struct Struc; + +// @has foo/struct.Struc.html +// @has - '//*[@id="main"]/h2[@id="implementations"]' "Implementations" +impl Struc { + pub const S: u64 = 0; +} |
