Skip to content

Commit c0b81df

Browse files
committed
Further remove the "default" representation
This updates some more references to the "default" representation and instead refers to it directly as the "Rust" representation. This is intended to more consistently refer to the same concept.
1 parent 4b618dc commit c0b81df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/items/enumerations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ let z = StructLike { value: 123 }; // Struct expression.
111111
Each enum instance has a _discriminant_: an integer logically associated to it
112112
that is used to determine which variant it holds.
113113

114-
Under the [default representation], the discriminant is interpreted as
114+
Under the [`Rust` representation], the discriminant is interpreted as
115115
an `isize` value. However, the compiler is allowed to use a smaller type (or
116116
another means of distinguishing variants) in its actual memory layout.
117117

@@ -333,14 +333,14 @@ enum E {
333333
[`C` representation]: ../type-layout.md#the-c-representation
334334
[call expression]: ../expressions/call-expr.md
335335
[constant expression]: ../const_eval.md#constant-expressions
336-
[default representation]: ../type-layout.md#the-default-representation
337336
[enumerated type]: ../types/enum.md
338337
[Field-less enums]: #field-less-enum
339338
[IDENTIFIER]: ../identifiers.md
340339
[never type]: ../types/never.md
341340
[numeric cast]: ../expressions/operator-expr.md#semantics
342341
[path expression]: ../expressions/path-expr.md
343342
[primitive representation]: ../type-layout.md#primitive-representations
343+
[`Rust` representation]: ../type-layout.md#the-rust-representation
344344
[struct expression]: ../expressions/struct-expr.md
345345
[struct]: structs.md
346346
[type namespace]: ../names/namespaces.md

src/type-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ struct AlignedStruct {
204204
r[layout.repr.inter-field]
205205
The representation of a type can change the padding between fields, but does
206206
not change the layout of the fields themselves. For example, a struct with a
207-
`C` representation that contains a struct `Inner` with the default
207+
`C` representation that contains a struct `Inner` with the `Rust`
208208
representation will not change the layout of `Inner`.
209209

210210
<a id="the-default-representation"></a>

0 commit comments

Comments
 (0)