Update idioms/rustdoc-init.md

Co-authored-by: Ivan Tham <pickfire@riseup.net>
pull/97/head
Tom Kaitchuck 4 years ago committed by GitHub
parent 2dcf58a049
commit c642018eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,7 +71,7 @@ This is much more concise and avoids repetitive code in examples.
## Disadvantages
As example is in a function, the code will not be tested. (Though it still will checked to make sure it compiles when running a `cargo test`)
So this pattern is most useful when you would need to add `no_run` anyway.
So this pattern is most useful when need `no_run`. With this, you do not need to add `no_run`.
## Discussion

Loading…
Cancel
Save