about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
author10takla <75916731+10takla@users.noreply.github.com>2024-07-19 10:15:12 +0300
committerGitHub <noreply@github.com>2024-07-19 15:15:12 +0800
commit3feb9731291ed50669e696ad7c4ede5914a21ee0 (patch)
tree310efdf965fd087b90747226ee51ac885b3be298 /src/doc/rustc-dev-guide
parent47549c31198edb534898bc0e0d826eb6dfbc3dc0 (diff)
downloadrust-3feb9731291ed50669e696ad7c4ede5914a21ee0.tar.gz
rust-3feb9731291ed50669e696ad7c4ede5914a21ee0.zip
Update adding.md (#2016)
Add `@' to the test header edition:2018
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/tests/adding.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/adding.md b/src/doc/rustc-dev-guide/src/tests/adding.md
index fc0c4937e85..e4a1107d616 100644
--- a/src/doc/rustc-dev-guide/src/tests/adding.md
+++ b/src/doc/rustc-dev-guide/src/tests/adding.md
@@ -51,7 +51,7 @@ Let's place our async test at `tests/ui/async-await/await-without-async.rs`:
 
 ```rust,ignore
 // Check what happens when using await in a non-async fn.
-// edition:2018
+//@ edition:2018
 
 async fn foo() {}
 
@@ -66,7 +66,7 @@ A few things to notice about our test:
 
 * The top should start with a short comment that [explains what the test is
   for](#explanatory_comment).
-* The `// edition:2018` comment is called a [header](headers.md) which provides
+* The `//@ edition:2018` comment is called a [header](headers.md) which provides
   instructions to compiletest on how to build the test.
   Here we need to set the edition for `async` to work (the default is 2015).
 * Following that is the source of the test.