]> git.lizzy.rs Git - rust.git/commit
trpl: explain how to inhibit rustdoc's auto-main
authorAlex Burka <durka42+github@gmail.com>
Tue, 1 Dec 2015 23:18:19 +0000 (18:18 -0500)
committerAlex Burka <durka42+github@gmail.com>
Tue, 1 Dec 2015 23:18:19 +0000 (18:18 -0500)
commitca07c2ec21c4880ed25bc0f22b5af3e601c7b2f2
treeda2eb640d1e5220b23dd2cd68540acb7c33109ba
parenteb1d018c01f70bcfc38bc8365a3de71c1564f694
trpl: explain how to inhibit rustdoc's auto-main

I think this fixes #30137. I basically just repeated some details that were scattered around other places in this document, and emphasized that you probably don't want an `extern crate` or `mod` statement to end up inside a function.
src/doc/book/documentation.md