about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2023-10-23 05:37:15 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2023-10-23 05:37:15 +0000
commit624f68da16c2f105dd2d7b4e16bc476d0c53c2b9 (patch)
treef4ab0ea057effbad3f343739705e55948a25ca60 /src/doc
parenta80b5c00b64a6ec8175a3153b174f59a237434a7 (diff)
parentf1a1ef68c7a6d588ba9faa20f3b2ecac4ef607c5 (diff)
downloadrust-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.md2
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(())