Skip to content

Commit 320880e

Browse files
author
christopherdumas
committed
Fix option link and anchor links.
1 parent 8a19b23 commit 320880e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/doc/trpl/error-handling.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ systems may want to jump around.
3333
* [Composing `Option` and `Result`](#composing-option-and-result)
3434
* [The limits of combinators](#the-limits-of-combinators)
3535
* [Early returns](#early-returns)
36-
* [The `try!` macro](#the-try-macro)
36+
* [The `try!` macro](#the-try!-macro)
3737
* [Defining your own error type](#defining-your-own-error-type)
3838
* [Standard library traits used for error handling](#standard-library-traits-used-for-error-handling)
3939
* [The `Error` trait](#the-error-trait)
4040
* [The `From` trait](#the-from-trait)
41-
* [The real `try!` macro](#the-real-try-macro)
41+
* [The real `try!` macro](#the-real-try!-macro)
4242
* [Composing custom error types](#composing-custom-error-types)
4343
* [Advice for library writers](#advice-for-library-writers)
4444
* [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
120120
simple, but to do that, we will first need to explore the `Option` and `Result`
121121
types. Both of these types have a method called `unwrap` defined on them.
122122

123-
## The `Option` type
123+
### The `Option` type
124124

125-
The `Option` type is
126-
[defined in the standard library][1]:
125+
The `Option` type is [defined in the standard library][5]:
127126

128127
```rust
129128
enum Option<T> {

0 commit comments

Comments
 (0)