Skip to content

Commit 4b80115

Browse files
committed
Try to specify what the base pointer is
1 parent 2288f13 commit 4b80115

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/expressions/operator-expr.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ assert_eq!(values[1], 3);
483483
`*const T` / `*mut T` can be cast to `*const U` / `*mut U` with the following behavior:
484484

485485
- If `T` is unsized and `U` is sized, the cast discards all metadata that
486-
completes the wide pointer `T` and produces a thin base pointer `U`.
486+
completes the wide pointer `T` and produces a thin pointer `U` to the
487+
value of the unsized pointer.
487488
- Otherwise a cast from `T` to `U` produces a value identical to the original
488489
pointer.
489490

0 commit comments

Comments
 (0)