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 5310b14b62
commit 3714ca2606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ impl ExampleStruct {
/// # Example
/// ```
/// # fn call_bar(example_struct: ExampleStruct) {
/// let result = example_struct.bar();
/// let result = example_struct.bar();
/// // do stuff with result.
/// # }
}
@ -70,4 +70,3 @@ If assertions are not required this pattern works well.
If they are, an alternative can be to create a method to create a dummy instance which is annotated with:
`#[doc(hidden)]`

Loading…
Cancel
Save