Skip to content

Commit 9730697

Browse files
authored
Merge pull request #266 from rchaser53/fix-miri
fix unwrap_u64 and to_raw_bits
2 parents 3a16201 + 4f0d474 commit 9730697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/miri.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ pointers or two element tuples) or `ByRef`, which is used for anything else and
8989
refers to a virtual allocation. These allocations can be accessed via the
9090
methods on `tcx.interpret_interner`.
9191

92-
If you are expecting a numeric result, you can use `unwrap_u64` (panics on
93-
anything that can't be representad as a `u64`) or `to_raw_bits` which results
92+
If you are expecting a numeric result, you can use `unwrap_usize` (panics on
93+
anything that can't be representad as a `u64`) or `assert_usize` which results
9494
in an `Option<u128>` yielding the `Scalar` if possible.
9595

9696
## Allocations

0 commit comments

Comments
 (0)