mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:04:31 -06:00
Leave a note to ourselves about documentation examples
Fixes #229 by reminding us for when that chapter gets more work.
This commit is contained in:
@@ -43,3 +43,13 @@ src/main.rs:1 /// What am I documenting?
|
||||
```
|
||||
|
||||
### Generating HTML documentation
|
||||
|
||||
|
||||
### Documentation examples
|
||||
|
||||
Another special part about documentation comments is that code examples in
|
||||
documentation comments are run as part of your tests, so that they're less
|
||||
likely to go out of date! To use this feature:
|
||||
|
||||
- TODO: insert a documentation example, preferably one that demonstrates a
|
||||
`use` statement including parts of the current crate, not just stdlib.
|
||||
|
||||
Reference in New Issue
Block a user