Skip to content

Commit

Permalink
correct supertrait/subtrait
Browse files Browse the repository at this point in the history
Co-authored-by: León Orell Valerian Liehr <[email protected]>
  • Loading branch information
davidtwco and fmease authored Nov 16, 2024
1 parent a840d8b commit 260c980
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 @@ -188,8 +188,8 @@ of a type in Rust: `Sized`, `ValueSized`, and the existing unstable
`std::ptr::Pointee`. `Sized` and `ValueSized` can be implemented as `const` when
the size is knowable at compilation time.

`Sized` is a supertrait of `ValueSized`, so every type which implements `Sized`
also implements `ValueSized`. Likewise, `ValueSized` is a supertrait of `Pointee`.
`Sized` is a subtrait of `ValueSized`, so every type which implements `Sized`
also implements `ValueSized`. Likewise, `ValueSized` is a subtrait of `Pointee`.
`Sized` is `const` if-and-only-if `ValueSized` is `const`.

```
Expand Down

0 comments on commit 260c980

Please sign in to comment.