about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-08-21 01:12:25 -0400
committerGitHub <noreply@github.com>2025-08-21 01:12:25 -0400
commit49eb7810e2a444befd7803c1a47b6a86d9f49c7c (patch)
tree66a07a1564f8583d1894886d44cdcb5c44a1e0de
parenta060d6014b5128c0b785bfe70e7c98537823f313 (diff)
parentf34fa22740a4ebeb81aaa12cb5666cee51e42111 (diff)
Rollup merge of #145678 - ttajakka:master, r=estebank
Fix typo in docstring

The return type is correct in the source code but incorrect in the docstring.
-rw-r--r--library/core/src/task/poll.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/task/poll.rs b/library/core/src/task/poll.rs
index ca668361ef6..59ffe7ad49c 100644
--- a/library/core/src/task/poll.rs
+++ b/library/core/src/task/poll.rs
@@ -125,7 +125,7 @@ impl<T, E> Poll<Result<T, E>> {
         }
     }
 
-    /// Maps a `Poll::Ready<Result<T, E>>` to `Poll::Ready<Result<T, F>>` by
+    /// Maps a `Poll::Ready<Result<T, E>>` to `Poll::Ready<Result<T, U>>` by
     /// applying a function to a contained `Poll::Ready(Err)` value, leaving all other
     /// variants untouched.
     ///