@@ -674,7 +674,7 @@ There are several kinds of item:
674
674
* [modules](#modules)
675
675
* [functions](#functions)
676
676
* [type definitions](grammar.html#type-definitions)
677
- * [structures ](#structures )
677
+ * [structs ](#structs )
678
678
* [enumerations](#enumerations)
679
679
* [constant items](#constant-items)
680
680
* [static items](#static-items)
@@ -1155,7 +1155,7 @@ type Point = (u8, u8);
1155
1155
let p: Point = (41, 68);
1156
1156
```
1157
1157
1158
- ### Structures
1158
+ ### Structs
1159
1159
1160
1160
A _structure_ is a nominal [structure type](#structure-types) defined with the
1161
1161
keyword `struct`.
@@ -2614,21 +2614,21 @@ comma:
2614
2614
### Structure expressions
2615
2615
2616
2616
There are several forms of structure expressions. A _structure expression_
2617
- consists of the [path](#paths) of a [structure item](#structures ), followed by
2617
+ consists of the [path](#paths) of a [structure item](#structs ), followed by
2618
2618
a brace-enclosed list of one or more comma-separated name-value pairs,
2619
2619
providing the field values of a new instance of the structure. A field name
2620
2620
can be any identifier, and is separated from its value expression by a colon.
2621
2621
The location denoted by a structure field is mutable if and only if the
2622
2622
enclosing structure is mutable.
2623
2623
2624
2624
A _tuple structure expression_ consists of the [path](#paths) of a [structure
2625
- item](#structures ), followed by a parenthesized list of one or more
2625
+ item](#structs ), followed by a parenthesized list of one or more
2626
2626
comma-separated expressions (in other words, the path of a structure item
2627
2627
followed by a tuple expression). The structure item must be a tuple structure
2628
2628
item.
2629
2629
2630
2630
A _unit-like structure expression_ consists only of the [path](#paths) of a
2631
- [structure item](#structures ).
2631
+ [structure item](#structs ).
2632
2632
2633
2633
The following are examples of structure expressions:
2634
2634
@@ -3145,7 +3145,7 @@ if` condition is evaluated. If all `if` and `else if` conditions evaluate to
3145
3145
3146
3146
A `match` expression branches on a *pattern*. The exact form of matching that
3147
3147
occurs depends on the pattern. Patterns consist of some combination of
3148
- literals, destructured arrays or enum constructors, structures and tuples,
3148
+ literals, destructured arrays or enum constructors, structs and tuples,
3149
3149
variable binding specifications, wildcards (`..`), and placeholders (`_`). A
3150
3150
`match` expression has a *head expression*, which is the value to compare to
3151
3151
the patterns. The type of the patterns must equal the type of the head
@@ -3469,7 +3469,7 @@ named reference to an [`enum` item](#enumerations).
3469
3469
### Recursive types
3470
3470
3471
3471
Nominal types — [enumerations](#enumerated-types) and
3472
- [structures ](#structure-types) — may be recursive. That is, each `enum`
3472
+ [structs ](#structure-types) — may be recursive. That is, each `enum`
3473
3473
constructor or `struct` field may refer, directly or indirectly, to the
3474
3474
enclosing `enum` or `struct` type itself. Such recursion has restrictions:
3475
3475
@@ -3497,7 +3497,7 @@ let a: List<i32> = List::Cons(7, Box::new(List::Cons(13, Box::new(List::Nil))));
3497
3497
### Pointer types
3498
3498
3499
3499
All pointers in Rust are explicit first-class values. They can be copied,
3500
- stored into data structures , and returned from functions. There are two
3500
+ stored into data structs , and returned from functions. There are two
3501
3501
varieties of pointer in Rust:
3502
3502
3503
3503
* References (`&`)
0 commit comments