Skip to content

Commit

Permalink
Update src/expressions/operator-expr.md
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
udoprog and RalfJung authored Jan 26, 2024
1 parent 4b80115 commit fd8b144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expressions/operator-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ assert_eq!(values[1], 3);
`*const T` / `*mut T` can be cast to `*const U` / `*mut U` with the following behavior:

- If `T` is unsized and `U` is sized, the cast discards all metadata that
completes the wide pointer `T` and produces a thin pointer `U` to the
value of the unsized pointer.
completes the wide pointer `T` and produces a thin pointer `U` consisting
of the data part of the unsized pointer.
- Otherwise a cast from `T` to `U` produces a value identical to the original
pointer.

Expand Down

0 comments on commit fd8b144

Please sign in to comment.