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:
```text
/// Some documentation.
# fn foo() {}
/// /// Some documentation.
/// # fn foo() {} // this function will be hidden
/// println!("Hello, World!");
```
It will render like this: