diff options
| author | Postmodern <postmodern.mod3@gmail.com> | 2016-05-20 17:47:34 -0700 |
|---|---|---|
| committer | Postmodern <postmodern.mod3@gmail.com> | 2016-05-20 17:47:34 -0700 |
| commit | 71af58accf8f773a7d410cf947940487f65ae70f (patch) | |
| tree | 1a45bbd35f5382e24455d5efcd2f135d73f91e52 | |
| parent | d8c086b08561b41576e2614ae3b360374ccf993d (diff) | |
| download | rust-71af58accf8f773a7d410cf947940487f65ae70f.tar.gz rust-71af58accf8f773a7d410cf947940487f65ae70f.zip | |
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".
| -rw-r--r-- | src/doc/book/unsized-types.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/book/unsized-types.md b/src/doc/book/unsized-types.md index 746faeb81b2..a23470d39fa 100644 --- a/src/doc/book/unsized-types.md +++ b/src/doc/book/unsized-types.md @@ -47,7 +47,7 @@ pointers, can use this `impl`. # ?Sized If you want to write a function that accepts a dynamically sized type, you -can use the special syntax, `?Sized`: +can use the special bound syntax, `?Sized`: ```rust struct Foo<T: ?Sized> { @@ -56,6 +56,6 @@ struct Foo<T: ?Sized> { ``` This `?Sized`, read as “T may or may not be `Sized`”, which allows us to match -both constant size and unsized types. All generic type parameters implicitly -have the `Sized` bound, so `?Sized` can be used to opt-out of the implicit +both sized and unsized types. All generic type parameters implicitly +have the `Sized` bound, so the `?Sized` can be used to opt-out of the implicit bound. |
