Skip to content

Commit b9a201e

Browse files
committed
tag examples with edition2018
1 parent 73b8f55 commit b9a201e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Exhaustive list of permitted structures in const functions:
197197
Functions may be qualified as async, and this can also be combined with the
198198
`unsafe` qualifier:
199199

200-
```rust
200+
```rust,edition2018
201201
async fn regular_example() { }
202202
async unsafe fn unsafe_example() { }
203203
```
@@ -209,7 +209,7 @@ execute the function's body.
209209
An async function is roughly equivalent to a function
210210
that returns [`impl Future`] and with an [`async move` block] as its body:
211211

212-
```rust
212+
```rust,edition2018
213213
// Source
214214
async fn example(x: &str) -> usize {
215215
x.len()

0 commit comments

Comments
 (0)