Fix minor typo (#772)

This commit is contained in:
Michel Boaventura
2020-03-28 07:39:23 -03:00
committed by GitHub
parent 1aa1a0c0d5
commit 84f726edd6

View File

@@ -130,7 +130,7 @@ pub trait Future {
} }
``` ```
The [associated type] `Output` specfies the type of the asynchronous value. For example, the `async_read_file` function in the diagram above would return a `Future` instance with `Output` set to `File`. The [associated type] `Output` specifies the type of the asynchronous value. For example, the `async_read_file` function in the diagram above would return a `Future` instance with `Output` set to `File`.
[associated type]: https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#specifying-placeholder-types-in-trait-definitions-with-associated-types [associated type]: https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#specifying-placeholder-types-in-trait-definitions-with-associated-types