Skip to content

Commit

Permalink
Fix two issues with TRPL: unsized types
Browse files Browse the repository at this point in the history
First, a link was broken.

Second, the wording was a bit unclear, so I fixed it up.

Fixes rust-lang#24852
  • Loading branch information
steveklabnik committed Apr 30, 2015
1 parent 2f613bf commit 91e5481
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/doc/trpl/unsized-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ impl Foo for &str {
```

Meaning, this implementation would only work for [references][ref], and not
other types of pointers. With this `impl`, all pointers, including (at some
point, there are some bugs to fix first) user-defined custom smart pointers,
can use this `impl`.
other types of pointers. With the `impl for str`, all pointers, including (at
some point, there are some bugs to fix first) user-defined custom smart
pointers, can use this `impl`.

[ref]: references-and-borrowing.html

# ?Sized

Expand Down

0 comments on commit 91e5481

Please sign in to comment.