Skip to content

Commit 00fc377

Browse files
committed
Apply requested changes from PR Reviews
1 parent 51c1a8a commit 00fc377

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
- [Type coercions](type-coercions.md)
100100
- [Destructors](destructors.md)
101101
- [Lifetime elision](lifetime-elision.md)
102-
- [Values and Representation](values.md)
102+
- [Values and representation](values.md)
103103

104104
- [Special types and traits](special-types-and-traits.md)
105105

src/values.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Values and Representation
1+
# Values and representation
22

33
r[value]
44

@@ -110,17 +110,17 @@ A thin reference to `T` consists of a non-null, well aligned address, and proven
110110
> [!NOTE]
111111
> This is true for both shared and mutable references. There are additional constraints enforced by the aliasing model.
112112
113-
r[value.pointer.fat]
114-
A fat pointer or reference consists of a data pointer or reference, and a pointee-specific metadata value.
113+
r[value.pointer.wide]
114+
A wide pointer or reference consists of a data pointer or reference, and a pointee-specific metadata value.
115115

116-
r[value.pointer.fat-reference]
117-
The data pointer of a fat reference has a non-null address, well aligned for `align_of_val(self)`, and with provenance for `size_of_val(self)` bytes.
116+
r[value.pointer.wide-reference]
117+
The data pointer of a wide reference has a non-null address, well aligned for `align_of_val(self)`, and with provenance for `size_of_val(self)` bytes.
118118

119-
r[value.pointer.fat-representation]
120-
A fat pointer or reference is represented the same as `struct FatPointer<M>{data: *mut (), metadata: M}` where `M` is the pointee metadata type, and the `data` and `metadata` fields are the corresponding parts of the pointer.
119+
r[value.pointer.wide-representation]
120+
A wide pointer or reference is represented the same as `struct WidePointer<M>{data: *mut (), metadata: M}` where `M` is the pointee metadata type, and the `data` and `metadata` fields are the corresponding parts of the pointer.
121121

122122
> [!NOTE]
123-
> The `FatPointer` struct has no guarantees about layout, and has the default representation.
123+
> The `WidePointer` struct has no guarantees about layout, and has the default representation.
124124
125125
r[value.pointer.fn]
126126
A value of a function pointer type consists of an non-null address. A function pointer value is represented the same as an address represented as an unsigned integer type with the same width as the function pointer.

0 commit comments

Comments
 (0)