Skip to content

Commit b154cb4

Browse files
committed
Specify which scalars in examples
1 parent bd747ee commit b154cb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/src/glossary.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ enum Scalar {
121121

122122
For example, the call ABI of:
123123

124-
* `i32` is `Scalar`,
124+
* `i32` is `Scalar::Int(I32,true)`,
125125
* `#[repr(C)] struct Wrapper(i32);` is `Aggregate { sized: true }`.
126-
* `#[repr(transparent)] struct Wrapper(i32);` is `Scalar`.
126+
* `#[repr(transparent)] struct Wrapper(i32);` is `Scalar::Int(I32,true)`.
127127

128128
The call ABI of `repr(Rust)` types is unspecified. The following is not
129129
guaranteed, but right now the call ABI of:
130130

131131
* `/*#[repr(Rust)]*/ struct Wrapper(i32);` (without `repr(transparent)`) is also
132-
`Scalar` - only larger `struct`s are aggregates.
132+
`Scalar::Int(I32, true)` - only larger `struct`s are aggregates.
133133

134134
### TODO
135135

0 commit comments

Comments
 (0)