Skip to content

Commit 322aa86

Browse files
Merge pull request #1863 from vlad20012/patch-1
Fix code snippet
2 parents 6a115b4 + 6aa13a6 commit 322aa86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch19-04-advanced-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The `Result<..., Error>` is repeated a lot. As such, `std::io` has this type of
143143
alias declaration:
144144

145145
```rust,ignore
146-
type Result<T> = Result<T, std::io::Error>;
146+
type Result<T> = std::result::Result<T, std::io::Error>;
147147
```
148148

149149
Because this declaration is in the `std::io` module, we can use the fully

0 commit comments

Comments
 (0)