mirror of
https://github.com/rust-lang/book.git
synced 2026-05-18 04:24:48 -04:00
@@ -143,7 +143,7 @@ The `Result<..., Error>` is repeated a lot. As such, `std::io` has this type of
|
||||
alias declaration:
|
||||
|
||||
```rust,ignore
|
||||
type Result<T> = Result<T, std::io::Error>;
|
||||
type Result<T> = std::result::Result<T, std::io::Error>;
|
||||
```
|
||||
|
||||
Because this declaration is in the `std::io` module, we can use the fully
|
||||
|
||||
Reference in New Issue
Block a user