Add doc comment to hiding portions of code example
Refactor hiding example to be more complete
This commit is contained in:
parent
df40e61382
commit
6dc824257a
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user