Skip to content

Commit 01ae97b

Browse files
committed
Rollup merge of #21427 - steveklabnik:generics_fix, r=alexcrichton
Multiple people have asked me if this is a reference to Hacker News, and I _certainly_ don't want to give them that impression.
2 parents c49d428 + e361b38 commit 01ae97b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/generics.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ This type is generic over _two_ types: `T` and `E`. By the way, the capital lett
7979
can be any letter you'd like. We could define `Result<T, E>` as:
8080

8181
```{rust}
82-
enum Result<H, N> {
83-
Ok(H),
84-
Err(N),
82+
enum Result<A, Z> {
83+
Ok(A),
84+
Err(Z),
8585
}
8686
```
8787

0 commit comments

Comments
 (0)