]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #33679 - Manishearth:rustdoc-readmore-impls, r=alexcrichton
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 21 May 2016 03:38:09 +0000 (09:08 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sat, 21 May 2016 03:38:09 +0000 (09:08 +0530)
commit3f4d91514733c81b41a2f7249cf7a87e997de2d7
tree551e7ab3ac3328cebc3378b2437f495863e569ca
parent87a22885a0157ff820b0e4e1b7f4a48e06cdfb51
parent9ce018bafbda6f1d8484adf4796a48e5cf9093bb
Rollup merge of #33679 - Manishearth:rustdoc-readmore-impls, r=alexcrichton

rustdoc: Add doc snippets for trait impls, with a read more link

The read more link only appears if the documentation is more than one line long.

![screenshot from 2016-05-17 06 54 14](https://cloud.githubusercontent.com/assets/1617736/15308544/4c2ba0ce-1bfc-11e6-9add-29de8dc7ac6e.png)

It currently does not appear on non-defaulted methods, since you can document them directly. I could make it so that default documentation gets forwarded if regular docs don't exist.

Fixes #33672

r? @alexcrichton

cc @steveklabnik
src/librustdoc/html/render.rs