Add doc comment to hiding portions of code example

Refactor hiding example to be more complete
This commit is contained in:
mandeep 2018-05-17 21:15:32 -05:00
parent df40e61382
commit 6dc824257a

View file

@ -79,8 +79,9 @@ from your example, but are important to make the tests work. Consider
an example block that looks like this: an example block that looks like this:
```text ```text
/// Some documentation. /// /// Some documentation.
# fn foo() {} /// # fn foo() {} // this function will be hidden
/// println!("Hello, World!");
``` ```
It will render like this: It will render like this: