Fix trait name in example code (s/Fut/F/)

This commit is contained in:
owen
2020-03-27 20:24:22 -04:00
parent 8a7e8665d2
commit e7a35086f7

View File

@@ -191,7 +191,7 @@ struct StringLen<F> {
inner_future: F, inner_future: F,
} }
impl<F> Future for StringLen<F> where Fut: Future<Output = String> { impl<F> Future for StringLen<F> where F: Future<Output = String> {
type Output = usize; type Output = usize;
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<T> { fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<T> {