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:
|
||||
|
||||
```text
|
||||
/// Some documentation.
|
||||
# fn foo() {}
|
||||
/// /// Some documentation.
|
||||
/// # fn foo() {} // this function will be hidden
|
||||
/// println!("Hello, World!");
|
||||
```
|
||||
|
||||
It will render like this:
|
||||
|
Loading…
x
Reference in New Issue
Block a user