Skip to content

Commit

Permalink
correct bound in size_of_val description
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtwco committed Nov 18, 2024
1 parent 0c2f6e6 commit 397e474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text/3729-sized-hierarchy.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ fn another_use_of_size_of<T: Sized>() -> [u8; size_of::<T>()] {
```

[`size_of_val`][api_size_of_val] is also const-stable, so like `size_of` above,
its bound should be changed to `T: ~const Sized` and this would not result in any
breakage due to the previously described edition migration.
its bound should be changed to `T: ~const ValueSized` and this would not result in
any breakage due to the previously described edition migration.

```rust
pub const fn size_of_val<T>(val: &T) -> usize
Expand Down

0 comments on commit 397e474

Please sign in to comment.