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 c642018eee
commit 1e62aa59f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -78,4 +78,4 @@ So this pattern is most useful when need `no_run`. With this, you do not need to
If assertions are not required this pattern works well.
If they are, an alternative can be to create a public method to create a dummy instance which is annotated with `#[doc(hidden)]` (so that users won't see it).
Then this method can be called inside of Rustdocs because it is part of the crate's public API.
Then this method can be called inside of rustdoc because it is part of the crate's public API.

Loading…
Cancel
Save