about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-10 07:39:50 +0000
committerbors <bors@rust-lang.org>2015-09-10 07:39:50 +0000
commit5f9f0b7cc34141a661822e67a3f05beef27f20dd (patch)
tree893bae0bf7349f224724ca552cc4063b2c07f5c8
parentde63207d182785743100de5af44cc30e33aec293 (diff)
parent3ccc253daea82044a414739f20258accd36ee11b (diff)
downloadrust-5f9f0b7cc34141a661822e67a3f05beef27f20dd.tar.gz
rust-5f9f0b7cc34141a661822e67a3f05beef27f20dd.zip
Auto merge of #28266 - jackwilsonv:patch-4, r=steveklabnik
r? @steveklabnik
-rw-r--r--src/doc/trpl/generics.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/trpl/generics.md b/src/doc/trpl/generics.md
index 59dc8e9ed94..347c1f5757c 100644
--- a/src/doc/trpl/generics.md
+++ b/src/doc/trpl/generics.md
@@ -17,7 +17,7 @@ enum Option<T> {
 ```
 
 The `<T>` part, which you’ve seen a few times before, indicates that this is
-a generic data type. Inside the declaration of our enum, wherever we see a `T`,
+a generic data type. Inside the declaration of our `enum`, wherever we see a `T`,
 we substitute that type for the same type used in the generic. Here’s an
 example of using `Option<T>`, with some extra type annotations:
 
@@ -115,10 +115,10 @@ let int_origin = Point { x: 0, y: 0 };
 let float_origin = Point { x: 0.0, y: 0.0 };
 ```
 
-Similarly to functions, the `<T>` is where we declare the generic parameters,
+Similar to functions, the `<T>` is where we declare the generic parameters,
 and we then use `x: T` in the type declaration, too.
 
-When you want to add an implementation for the generic struct, you just
+When you want to add an implementation for the generic `struct`, you just
 declare the type parameter after the `impl`:
 
 ```rust