Skip to content

Commit 0a92516

Browse files
authored
Update adding.md (#2016)
Add `@' to the test header edition:2018
1 parent 0c4d55c commit 0a92516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/adding.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Let's place our async test at `tests/ui/async-await/await-without-async.rs`:
5151

5252
```rust,ignore
5353
// Check what happens when using await in a non-async fn.
54-
// edition:2018
54+
//@ edition:2018
5555
5656
async fn foo() {}
5757
@@ -66,7 +66,7 @@ A few things to notice about our test:
6666

6767
* The top should start with a short comment that [explains what the test is
6868
for](#explanatory_comment).
69-
* The `// edition:2018` comment is called a [header](headers.md) which provides
69+
* The `//@ edition:2018` comment is called a [header](headers.md) which provides
7070
instructions to compiletest on how to build the test.
7171
Here we need to set the edition for `async` to work (the default is 2015).
7272
* Following that is the source of the test.

0 commit comments

Comments
 (0)