diff options
| author | steveklabnik <steve@steveklabnik.com> | 2017-08-10 20:17:41 -0400 |
|---|---|---|
| committer | steveklabnik <steve@steveklabnik.com> | 2017-08-10 20:17:41 -0400 |
| commit | 92f84424345c72ab5d7b13e931d09d62f8543038 (patch) | |
| tree | 4407a38c69a11a934688209175b5fb503ddcd1dd /src/doc/rustdoc | |
| parent | 640cf596ec1eb6efb30232df6222d927d814bffb (diff) | |
| download | rust-92f84424345c72ab5d7b13e931d09d62f8543038.tar.gz rust-92f84424345c72ab5d7b13e931d09d62f8543038.zip | |
ignore more things
Diffstat (limited to 'src/doc/rustdoc')
| -rw-r--r-- | src/doc/rustdoc/src/the-doc-attribute.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/rustdoc/src/the-doc-attribute.md b/src/doc/rustdoc/src/the-doc-attribute.md index 0b14f44b63e..b77565ec2d7 100644 --- a/src/doc/rustdoc/src/the-doc-attribute.md +++ b/src/doc/rustdoc/src/the-doc-attribute.md @@ -107,7 +107,7 @@ they are documented. These attributes are used on `use` statements, and control where the documentation shows up. For example, consider this Rust code: -```rust +```rust,ignore pub use bar::Bar; /// bar docs @@ -132,7 +132,7 @@ top level, rather than `pub use`'d. Let's change our original example, by making `bar` private: -```rust +```rust,ignore pub use bar::Bar; /// bar docs @@ -147,7 +147,7 @@ to link to. `rustdoc` will inline these definitions, and so we end up in the sam as the `#[doc(inline)]` above; `Bar` is in a `Structs` section, as if it were defined at the top level. If we add the `no_inline` form of the attribute: -```rust +```rust,ignore #[doc(no_inline)] pub use bar::Bar; @@ -169,4 +169,4 @@ the `strip-hidden` pass is removed. Since primitive types are defined in the compiler, there's no place to attach documentation attributes. This attribute is used by the standard library to provide a way to generate -documentation for primitive types. \ No newline at end of file +documentation for primitive types. |
