Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pretzelhammer/rust-blog into master
Browse files Browse the repository at this point in the history
  • Loading branch information
pretzelhammer committed Jun 5, 2021
2 parents b83c1d6 + 7280851 commit 3b970cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posts/sizedness-in-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ fn func<T: Sized>(t: T) {}
// ...which we can opt-out of by explicitly setting ?Sized...
fn func<T: ?Sized>(t: T) {} //

// ...which doesn't compile since t doesn't have
// ...which doesn't compile since it doesn't have
// a known size so we must put it behind a pointer...
fn func<T: ?Sized>(t: &T) {} //
fn func<T: ?Sized>(t: Box<T>) {} //
Expand Down

0 comments on commit 3b970cc

Please sign in to comment.