Skip to content

Commit 1317a75

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 1fe0faa commit 1317a75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/items/enumerations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Each enum instance has a _discriminant_: an integer logically associated to it
133133
that is used to determine which variant it holds.
134134

135135
r[items.enum.discriminant.repr-rust]
136-
Under the [default representation], the discriminant is interpreted as
136+
Under the [`Rust` representation], the discriminant is interpreted as
137137
an `isize` value. However, the compiler is allowed to use a smaller type (or
138138
another means of distinguishing variants) in its actual memory layout.
139139

@@ -378,14 +378,14 @@ enum E {
378378
[`C` representation]: ../type-layout.md#the-c-representation
379379
[call expression]: ../expressions/call-expr.md
380380
[constant expression]: ../const_eval.md#constant-expressions
381-
[default representation]: ../type-layout.md#the-default-representation
382381
[enumerated type]: ../types/enum.md
383382
[Field-less enums]: #field-less-enum
384383
[IDENTIFIER]: ../identifiers.md
385384
[never type]: ../types/never.md
386385
[numeric cast]: ../expressions/operator-expr.md#semantics
387386
[path expression]: ../expressions/path-expr.md
388387
[primitive representation]: ../type-layout.md#primitive-representations
388+
[`Rust` representation]: ../type-layout.md#the-rust-representation
389389
[struct expression]: ../expressions/struct-expr.md
390390
[struct]: structs.md
391391
[type namespace]: ../names/namespaces.md

src/type-layout.md

+1-1
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)