summary refs log tree commit diff
path: root/src/doc/reference.md
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-15 14:11:27 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-15 14:11:27 -0800
commit855c3e5af54b0ba6da7b26e56acb2c3864aff5ad (patch)
treeceb07719c31b2b18832dcbd22d0f01c439a07905 /src/doc/reference.md
parentbaee2049eb551e06765d4f43b9ff61afd783aaf5 (diff)
parent4b14f67df3c28cd1cd8ea5bf794a3e542c663d8d (diff)
downloadrust-855c3e5af54b0ba6da7b26e56acb2c3864aff5ad.tar.gz
rust-855c3e5af54b0ba6da7b26e56acb2c3864aff5ad.zip
rollup merge of #20632: gchp/reference
I noticed that the `deriving` keyword is deprecated and that `derive` is the replacement. This updates the reference (and other docs) to remove the use `deriving`.
Diffstat (limited to 'src/doc/reference.md')
-rw-r--r--src/doc/reference.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 1c9f0799b3b..aea2c769725 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -2432,15 +2432,15 @@ There are three different types of inline attributes:
 * `#[inline(always)]` asks the compiler to always perform an inline expansion.
 * `#[inline(never)]` asks the compiler to never perform an inline expansion.
 
-### Deriving
+### Derive
 
-The `deriving` attribute allows certain traits to be automatically implemented
+The `derive` attribute allows certain traits to be automatically implemented
 for data structures. For example, the following will create an `impl` for the
 `PartialEq` and `Clone` traits for `Foo`, the type parameter `T` will be given
 the `PartialEq` or `Clone` constraints for the appropriate `impl`:
 
 ```
-#[deriving(PartialEq, Clone)]
+#[derive(PartialEq, Clone)]
 struct Foo<T> {
     a: int,
     b: T
@@ -2462,7 +2462,7 @@ impl<T: PartialEq> PartialEq for Foo<T> {
 }
 ```
 
-Supported traits for `deriving` are:
+Supported traits for `derive` are:
 
 * Comparison traits: `PartialEq`, `Eq`, `PartialOrd`, `Ord`.
 * Serialization: `Encodable`, `Decodable`. These require `serialize`.