Skip to content

Commit 71af58a

Browse files
committed
Wording changes
* Use "special bound syntax" instead of "special syntax". `?Sized` is technically a "bound", but `?Sized` is specialized syntax that _only_ works with `Sized`, and no other Trait. * Replace "constant size" with "sized".
1 parent d8c086b commit 71af58a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/book/unsized-types.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pointers, can use this `impl`.
4747
# ?Sized
4848

4949
If you want to write a function that accepts a dynamically sized type, you
50-
can use the special syntax, `?Sized`:
50+
can use the special bound syntax, `?Sized`:
5151

5252
```rust
5353
struct Foo<T: ?Sized> {
@@ -56,6 +56,6 @@ struct Foo<T: ?Sized> {
5656
```
5757

5858
This `?Sized`, read as “T may or may not be `Sized`”, which allows us to match
59-
both constant size and unsized types. All generic type parameters implicitly
60-
have the `Sized` bound, so `?Sized` can be used to opt-out of the implicit
59+
both sized and unsized types. All generic type parameters implicitly
60+
have the `Sized` bound, so the `?Sized` can be used to opt-out of the implicit
6161
bound.

0 commit comments

Comments
 (0)