diff --git a/src/chYY-YY-documentation.md b/src/chYY-YY-documentation.md index fa49b461f..29cac8e9c 100644 --- a/src/chYY-YY-documentation.md +++ b/src/chYY-YY-documentation.md @@ -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.