]> git.lizzy.rs Git - rust.git/commit
Toggle-wrap items differently than top-doc.
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>
Fri, 14 May 2021 06:09:24 +0000 (23:09 -0700)
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>
Fri, 14 May 2021 06:09:24 +0000 (23:09 -0700)
commit73a5c1f944b4da797fb494850ea3b3a0ee955856
tree1b00fed1bdde5805fa174c84eb568deee493ec97
parent754d17121d04d02bee634558129110b68fa95b00
Toggle-wrap items differently than top-doc.

This makes sure things like trait methods get wrapped at the
`<h3><code>` level rather than at the `.docblock` level. Also it ensures
that only the actual top documentation gets the `.top-doc` class.
src/librustdoc/html/render/mod.rs
src/librustdoc/html/render/print_item.rs