Skip to content

Commit

Permalink
Update src/expressions/operator-expr.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 authored Aug 1, 2022
1 parent 6fa4c04 commit 5fab946
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/expressions/operator-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ Casting between pointers to unsized type preserves the pointer metadata unchange
To illustrate:

```rust
use std::ptr;

```
let u8_slice_ptr = ptr::slice_from_raw_parts::<u8>(ptr::null(), 4);
assert_eq!((ptr::null(), 4), u8_slice_ptr.to_raw_parts());

Expand Down

0 comments on commit 5fab946

Please sign in to comment.