diff options
| author | The Miri Conjob Bot <miri@cron.bot> | 2023-10-23 05:37:15 +0000 |
|---|---|---|
| committer | The Miri Conjob Bot <miri@cron.bot> | 2023-10-23 05:37:15 +0000 |
| commit | 624f68da16c2f105dd2d7b4e16bc476d0c53c2b9 (patch) | |
| tree | f4ab0ea057effbad3f343739705e55948a25ca60 /src/doc | |
| parent | a80b5c00b64a6ec8175a3153b174f59a237434a7 (diff) | |
| parent | f1a1ef68c7a6d588ba9faa20f3b2ecac4ef607c5 (diff) | |
| download | rust-624f68da16c2f105dd2d7b4e16bc476d0c53c2b9.tar.gz rust-624f68da16c2f105dd2d7b4e16bc476d0c53c2b9.zip | |
Merge from rustc
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustdoc/src/write-documentation/what-to-include.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustdoc/src/write-documentation/what-to-include.md b/src/doc/rustdoc/src/write-documentation/what-to-include.md index 4bcae4d222c..75d3b7dae61 100644 --- a/src/doc/rustdoc/src/write-documentation/what-to-include.md +++ b/src/doc/rustdoc/src/write-documentation/what-to-include.md @@ -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(()) |
