Rollup merge of #123665 - Jules-Bertholet:patch-1, r=lqd

Fix typo in `Future::poll()` docs

``@rustbot`` label A-docs
This commit is contained in:
Guillaume Gomez 2024-04-09 13:39:24 +02:00 committed by GitHub
commit 4f563a16f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,7 @@ pub trait Future {
/// An implementation of `poll` should strive to return quickly, and should
/// not block. Returning quickly prevents unnecessarily clogging up
/// threads or event loops. If it is known ahead of time that a call to
/// `poll` may end up taking awhile, the work should be offloaded to a
/// `poll` may end up taking a while, the work should be offloaded to a
/// thread pool (or something similar) to ensure that `poll` can return
/// quickly.
///