Skip to content

Commit

Permalink
fix what-to-include doc example
Browse files Browse the repository at this point in the history
Fixes the second example in the Examples section of what-to-include.md  by marking main as a function.
  • Loading branch information
csditchfield committed Oct 22, 2023
1 parent 1c05d50 commit 6596270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/rustdoc/src/write-documentation/what-to-include.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ and your test suite, this example needs some additional code:
``````text
/// Example
/// ```rust
/// # main() -> Result<(), std::num::ParseIntError> {
/// # fn main() -> Result<(), std::num::ParseIntError> {
/// let fortytwo = "42".parse::<u32>()?;
/// println!("{} + 10 = {}", fortytwo, fortytwo+10);
/// # Ok(())
Expand Down

0 comments on commit 6596270

Please sign in to comment.