diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-09 05:42:28 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-09 05:42:28 +0530 |
| commit | 38a606ac679d344c07ccd76e0cd74e6c85a8ff19 (patch) | |
| tree | 5b79f7048bcba54d6bc556b31815b4a190a33c9b /src/doc | |
| parent | 0d6f11b09b7681e4bd9e5fb41355bc19db0235c4 (diff) | |
| parent | 7abb40c79ac8ed0d79fb45cd9ec4c3ba5c59fadf (diff) | |
| download | rust-38a606ac679d344c07ccd76e0cd74e6c85a8ff19.tar.gz rust-38a606ac679d344c07ccd76e0cd74e6c85a8ff19.zip | |
Rollup merge of #26112 - tshepang:readability, r=steveklabnik
Diffstat (limited to 'src/doc')
| -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 6264e467886..06452d795ce 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; |
