File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2432,15 +2432,15 @@ There are three different types of inline attributes:
2432
2432
* ` #[inline(always)] ` asks the compiler to always perform an inline expansion.
2433
2433
* ` #[inline(never)] ` asks the compiler to never perform an inline expansion.
2434
2434
2435
- ### Deriving
2435
+ ### Derive
2436
2436
2437
- The ` deriving ` attribute allows certain traits to be automatically implemented
2437
+ The ` derive ` attribute allows certain traits to be automatically implemented
2438
2438
for data structures. For example, the following will create an ` impl ` for the
2439
2439
` PartialEq ` and ` Clone ` traits for ` Foo ` , the type parameter ` T ` will be given
2440
2440
the ` PartialEq ` or ` Clone ` constraints for the appropriate ` impl ` :
2441
2441
2442
2442
```
2443
- #[deriving (PartialEq, Clone)]
2443
+ #[derive (PartialEq, Clone)]
2444
2444
struct Foo<T> {
2445
2445
a: int,
2446
2446
b: T
@@ -2462,7 +2462,7 @@ impl<T: PartialEq> PartialEq for Foo<T> {
2462
2462
}
2463
2463
```
2464
2464
2465
- Supported traits for ` deriving ` are:
2465
+ Supported traits for ` derive ` are:
2466
2466
2467
2467
* Comparison traits: ` PartialEq ` , ` Eq ` , ` PartialOrd ` , ` Ord ` .
2468
2468
* Serialization: ` Encodable ` , ` Decodable ` . These require ` serialize ` .
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ Rustdoc also supplies some extra sugar for helping with some tedious
198
198
documentation examples. If a line is prefixed with ` # ` , then the line
199
199
will not show up in the HTML documentation, but it will be used when
200
200
testing the code block (NB. the space after the ` # ` is required, so
201
- that one can still write things like ` #[deriving (Eq)] ` ).
201
+ that one can still write things like ` #[derive (Eq)] ` ).
202
202
203
203
~~~ md
204
204
```
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ The advantages over a simple `fn(&str) -> uint` are:
126
126
a way to define new literal syntax for any data type.
127
127
128
128
In addition to procedural macros, you can define new
129
- [ ` deriving ` ] ( ../reference.html#deriving ) -like attributes and other kinds of
129
+ [ ` derive ` ] ( ../reference.html#derive ) -like attributes and other kinds of
130
130
extensions. See
131
131
[ ` Registry::register_syntax_extension ` ] ( ../rustc/plugin/registry/struct.Registry.html#method.register_syntax_extension )
132
132
and the [ ` SyntaxExtension `
You can’t perform that action at this time.
0 commit comments