We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73b8f55 commit b9a201eCopy full SHA for b9a201e
src/items/functions.md
@@ -197,7 +197,7 @@ Exhaustive list of permitted structures in const functions:
197
Functions may be qualified as async, and this can also be combined with the
198
`unsafe` qualifier:
199
200
-```rust
+```rust,edition2018
201
async fn regular_example() { }
202
async unsafe fn unsafe_example() { }
203
```
@@ -209,7 +209,7 @@ execute the function's body.
209
An async function is roughly equivalent to a function
210
that returns [`impl Future`] and with an [`async move` block] as its body:
211
212
213
// Source
214
async fn example(x: &str) -> usize {
215
x.len()
0 commit comments