Skip to content

Commit e1e1270

Browse files
author
Alexander Regueiro
committed
Removed feature flag for raw_identifiers in example.
1 parent 60e89e4 commit e1e1270

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/rust-2018/module-system/raw-identifiers.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ error: expected identifier, found keyword `match`
2828
You can write this with a raw identifier:
2929

3030
```rust
31-
#![feature(rust_2018_preview)]
32-
#![feature(raw_identifiers)]
33-
3431
fn r#match(needle: &str, haystack: &str) -> bool {
3532
haystack.contains(needle)
3633
}
@@ -40,9 +37,9 @@ fn main() {
4037
}
4138
```
4239

43-
Note the `r#` prefix on both the function name, as well as the call.
40+
Note the `r#` prefix on both the function name as well as the call.
4441

45-
## More details
42+
## Motivation
4643

4744
This feature is useful for a few reasons, but the primary motivation was
4845
inter-edition situations. For example, `try` is not a keyword in the 2015

0 commit comments

Comments
 (0)