We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 964f2e1 commit 80edfa8Copy full SHA for 80edfa8
reference/src/glossary.md
@@ -77,8 +77,7 @@ let raw2_wrong = raw1.wrapping_add(raw2.wrapping_sub(raw1 as usize) as usize);
77
// raw2_wrong points to address 0x200 and has provenance @1.
78
// In other words, raw2 and raw2_wrong have same *address*...
79
assert_eq!(raw2 as usize, raw2_wrong as usize);
80
-// ...but it would be UB to use raw2_wrong, as it was obtained by
81
-// cross-allocation arithmetic. raw2_wrong has the wrong *provenance*:
+// ...but it would be UB to use raw2_wrong, as it has the wrong *provenance*:
82
// it points to address 0x200 in allocation @2, but the pointer
83
// has provenance @1.
84
```
0 commit comments