diff options
| author | est31 <MTest31@outlook.com> | 2017-02-12 06:49:15 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-02-15 07:11:13 +0100 |
| commit | aebd94fd3c151212723906fb0445f0153917abac (patch) | |
| tree | b1b6539f9641e661575e3c33a587ae532515ba68 /src/doc | |
| parent | 025c328bf5ab336ff708e62a59292298dc1bc089 (diff) | |
| download | rust-aebd94fd3c151212723906fb0445f0153917abac.tar.gz rust-aebd94fd3c151212723906fb0445f0153917abac.zip | |
Stabilize field init shorthand
Closes #37340.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/book/src/structs.md | 2 | ||||
| -rw-r--r-- | src/doc/reference.md | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/doc/book/src/structs.md b/src/doc/book/src/structs.md index 51af343c130..6423147e66e 100644 --- a/src/doc/book/src/structs.md +++ b/src/doc/book/src/structs.md @@ -122,8 +122,6 @@ fields of the data structure are initialized with variables of the same names as the fields. ``` -#![feature(field_init_shorthand)] - #[derive(Debug)] struct Person<'a> { name: &'a str, diff --git a/src/doc/reference.md b/src/doc/reference.md index 7155641e2c2..f2be20d4a75 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -2825,7 +2825,6 @@ This allows a compact syntax with less duplication. Example: ``` -# #![feature(field_init_shorthand)] # struct Point3d { x: i32, y: i32, z: i32 } # let x = 0; # let y_value = 0; |
