Skip to content

Commit f34fa22

Browse files
authored
fix: typo
The return type is correct in the source code but incorrect in the docstring
1 parent e8a792d commit f34fa22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/task/poll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<T, E> Poll<Result<T, E>> {
125125
}
126126
}
127127

128-
/// Maps a `Poll::Ready<Result<T, E>>` to `Poll::Ready<Result<T, F>>` by
128+
/// Maps a `Poll::Ready<Result<T, E>>` to `Poll::Ready<Result<T, U>>` by
129129
/// applying a function to a contained `Poll::Ready(Err)` value, leaving all other
130130
/// variants untouched.
131131
///

0 commit comments

Comments
 (0)