@@ -93,8 +93,8 @@ Tuple types and values are denoted by listing the types or values of their
93
93
elements, respectively, in a parenthesized, comma-separated list.
94
94
95
95
Because tuple elements don't have a name, they can only be accessed by
96
- pattern-matching or by using ` N ` directly as a field to access the
97
- ` N ` th element.
96
+ pattern-matching or by using ` N ` directly as a field to access the ` N ` th
97
+ element.
98
98
99
99
An example of a tuple type and its use:
100
100
@@ -162,13 +162,13 @@ expression](expressions.html#struct-expressions).
162
162
163
163
The memory layout of a ` struct ` is undefined by default to allow for compiler
164
164
optimizations like field reordering, but it can be fixed with the
165
- ` #[repr(...)] ` attribute. In either case, fields may be given in any order in
166
- a corresponding struct * expression* ; the resulting ` struct ` value will always
165
+ ` #[repr(...)] ` attribute. In either case, fields may be given in any order in a
166
+ corresponding struct * expression* ; the resulting ` struct ` value will always
167
167
have the same memory layout.
168
168
169
169
The fields of a ` struct ` may be qualified by [ visibility
170
- modifiers] ( visibility-and-privacy.html ) , to allow access to data in a
171
- struct outside a module.
170
+ modifiers] ( visibility-and-privacy.html ) , to allow access to data in a struct
171
+ outside a module.
172
172
173
173
A _ tuple struct_ type is just like a struct type, except that the fields are
174
174
anonymous.
@@ -386,9 +386,9 @@ more of the closure traits:
386
386
moved in the body of the closure. ` Fn ` inherits from ` FnMut ` , which itself
387
387
inherits from ` FnOnce ` .
388
388
389
- Closures that don't use anything from their environment ("non capturing closures")
390
- can be coerced to function pointers (` fn ` ) with the matching signature.
391
- To adopt the example from the section above:
389
+ Closures that don't use anything from their environment ("non capturing
390
+ closures") can be coerced to function pointers (` fn ` ) with the matching
391
+ signature. To adopt the example from the section above:
392
392
393
393
``` rust
394
394
let add = | x , y | x + y ;
0 commit comments