Skip to content

Commit

Permalink
match indentation in code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtwco committed Dec 9, 2024
1 parent aa21450 commit c0ee97d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions text/3729-sized-hierarchy.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ backwards compatibility, depending on the bounds that would be introduced[^7].

```rust
trait Foo {
fn bar<T: Sized>(t: T) -> usize;
fn baz<T: ?Sized>(t: T) -> usize;
fn bar<T: Sized>(t: T) -> usize;
fn baz<T: ?Sized>(t: T) -> usize;
}
```

Expand All @@ -453,8 +453,8 @@ backwards compatibility, depending on the bounds that would be introduced[^7].
struct Qux;

impl Foo for Qux {
fn bar<T: Sized>(_: T) -> usize { std::mem::size_of<T> }
fn baz<T: ?Sized>(t: T) -> usize { std::mem::size_of_val(t) }
fn bar<T: Sized>(_: T) -> usize { std::mem::size_of<T> }
fn baz<T: ?Sized>(t: T) -> usize { std::mem::size_of_val(t) }
}
```
[^6]: Associated types of traits have default `Sized` bounds which cannot be
Expand Down

0 comments on commit c0ee97d

Please sign in to comment.