about summary refs log tree commit diff
path: root/src/doc/guide-error-handling.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/guide-error-handling.md')
-rw-r--r--src/doc/guide-error-handling.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-error-handling.md b/src/doc/guide-error-handling.md
index d241e77f810..98b46511f04 100644
--- a/src/doc/guide-error-handling.md
+++ b/src/doc/guide-error-handling.md
@@ -147,10 +147,10 @@ for all but the most trivial of situations.
 Here's an example of using `Result`:
 
 ```rust
-#[deriving(Show)]
+#[derive(Show)]
 enum Version { Version1, Version2 }
 
-#[deriving(Show)]
+#[derive(Show)]
 enum ParseError { InvalidHeaderLength, InvalidVersion }
 
 fn parse_version(header: &[u8]) -> Result<Version, ParseError> {