diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-06-09 00:16:23 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-06-09 00:16:23 +0200 |
| commit | 7abb40c79ac8ed0d79fb45cd9ec4c3ba5c59fadf (patch) | |
| tree | 9936a8e2179f85126482607c0a25ca8ea11b3258 | |
| parent | 20cf4cf62c72c67fdd89609f9098b259335ba1ae (diff) | |
| download | rust-7abb40c79ac8ed0d79fb45cd9ec4c3ba5c59fadf.tar.gz rust-7abb40c79ac8ed0d79fb45cd9ec4c3ba5c59fadf.zip | |
reference: improve readability
| -rw-r--r-- | src/doc/reference.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index d56ecb360cf..c85f51b78cd 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1418,9 +1418,13 @@ impl<T> Container for Vec<T> { ``` Generic functions may use traits as _bounds_ on their type parameters. This -will have two effects: only types that have the trait may instantiate the -parameter, and within the generic function, the methods of the trait can be -called on values that have the parameter's type. For example: +will have two effects: + +- Only types that have the trait may instantiate the parameter. +- Within the generic function, the methods of the trait can be + called on values that have the parameter's type. + +For example: ``` # type Surface = i32; |
