Skip to content

Commit

Permalink
runtime: fix unclear docs for {Handle,Runtime}::block_on (#3628)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Mar 20, 2021
1 parent 81f47e8 commit 0bfcbc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tokio/src/runtime/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl Handle {

/// Run a future to completion on this `Handle`'s associated `Runtime`.
///
/// This runs the given future on the runtime, blocking until it is
/// This runs the given future on the current thread, blocking until it is
/// complete, and yielding its resolved result. Any tasks or timers which
/// the future spawns internally will be executed on the runtime.
///
Expand Down
2 changes: 1 addition & 1 deletion tokio/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ cfg_rt! {
/// Run a future to completion on the Tokio runtime. This is the
/// runtime's entry point.
///
/// This runs the given future on the runtime, blocking until it is
/// This runs the given future on the current thread, blocking until it is
/// complete, and yielding its resolved result. Any tasks or timers
/// which the future spawns internally will be executed on the runtime.
///
Expand Down

0 comments on commit 0bfcbc8

Please sign in to comment.