From 1f4b3c0e353df405c2c9154963d919d55d5de427 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 26 Aug 2016 15:56:27 -0700 Subject: [PATCH] Leave a note to ourselves about documentation examples Fixes #229 by reminding us for when that chapter gets more work. --- src/chYY-YY-documentation.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.