about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris C Cerami <chrisccerami@gmail.com>2015-10-20 21:21:44 -0400
committerChris C Cerami <chrisccerami@gmail.com>2015-10-20 21:21:44 -0400
commit509bec89fa88b8a946e21e5fe97045e1a7e5f703 (patch)
tree0c0ed5e995fc0689a70053a809313f07079efd14
parentd8acb03cd553ea4d5613488b67333a53d8bb583c (diff)
downloadrust-509bec89fa88b8a946e21e5fe97045e1a7e5f703.tar.gz
rust-509bec89fa88b8a946e21e5fe97045e1a7e5f703.zip
Change headers in Traits section of the book
-rw-r--r--src/doc/trpl/traits.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md
index 27debf86e39..6ba0f287be3 100644
--- a/src/doc/trpl/traits.md
+++ b/src/doc/trpl/traits.md
@@ -47,7 +47,7 @@ As you can see, the `trait` block looks very similar to the `impl` block,
 but we don’t define a body, just a type signature. When we `impl` a trait,
 we use `impl Trait for Item`, rather than just `impl Item`.
 
-## Traits bounds for generic functions
+## Trait constraints on generic functions
 
 Traits are useful because they allow a type to make certain promises about its
 behavior. Generic functions can exploit this to constrain the types they
@@ -155,7 +155,7 @@ We get a compile-time error:
 error: the trait `HasArea` is not implemented for the type `_` [E0277]
 ```
 
-## Traits bounds for generic structs
+## Trait constraints on generic structs
 
 Your generic structs can also benefit from trait constraints. All you need to
 do is append the constraint when you declare type parameters. Here is a new