about summary refs log tree commit diff
diff options
context:
space:
mode:
authorchristopherdumas <christopherdumas@me.com>2015-09-15 07:54:43 -0700
committerchristopherdumas <christopherdumas@me.com>2015-09-15 10:34:57 -0700
commit320880eed5e960f6107cfbe039a5eba33f209f32 (patch)
treeb0c16f18b41eb28ca44ac07146929f29d4847c54
parent8a19b234c7315af478786801eb53a984a7059e14 (diff)
downloadrust-320880eed5e960f6107cfbe039a5eba33f209f32.tar.gz
rust-320880eed5e960f6107cfbe039a5eba33f209f32.zip
Fix option link and anchor links.
-rw-r--r--src/doc/trpl/error-handling.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md
index 673dc950ecc..2b590c82a89 100644
--- a/src/doc/trpl/error-handling.md
+++ b/src/doc/trpl/error-handling.md
@@ -33,12 +33,12 @@ systems may want to jump around.
     * [Composing `Option` and `Result`](#composing-option-and-result)
     * [The limits of combinators](#the-limits-of-combinators)
     * [Early returns](#early-returns)
-    * [The `try!` macro](#the-try-macro)
+    * [The `try!` macro](#the-try!-macro)
     * [Defining your own error type](#defining-your-own-error-type)
 * [Standard library traits used for error handling](#standard-library-traits-used-for-error-handling)
     * [The `Error` trait](#the-error-trait)
     * [The `From` trait](#the-from-trait)
-    * [The real `try!` macro](#the-real-try-macro)
+    * [The real `try!` macro](#the-real-try!-macro)
     * [Composing custom error types](#composing-custom-error-types)
     * [Advice for library writers](#advice-for-library-writers)
 * [Case study: A program to read population data](#case-study-a-program-to-read-population-data)
@@ -120,10 +120,9 @@ It would be better if we just showed the code for unwrapping because it is so
 simple, but to do that, we will first need to explore the `Option` and `Result`
 types. Both of these types have a method called `unwrap` defined on them.
 
-## The `Option` type
+### The `Option` type
 
-The `Option` type is
-[defined in the standard library][1]: 
+The `Option` type is [defined in the standard library][5]:
 
 ```rust
 enum Option<T> {