From a05e5a7723df5296284289505d645ee3efd3b502 Mon Sep 17 00:00:00 2001 From: Avery Harnish Date: Fri, 24 Jan 2020 13:34:33 -0600 Subject: [PATCH] docs: fix typos in blocking example (#2115) --- tokio/examples/blocking.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tokio/examples/blocking.rs b/tokio/examples/blocking.rs index e7d5da6c8..8c515a840 100644 --- a/tokio/examples/blocking.rs +++ b/tokio/examples/blocking.rs @@ -1,10 +1,10 @@ //! An example of using blocking funcion annotation. //! //! This example will create 8 "heavy computation" blocking futures and 8 -//! non-blocking futures with 4 threads core threads in runtime. -//! Each non-blocking future will print it's id and return immideatly. -//! Each blocking future will print it's id on start, sleep for 1000 ms, print -//! it's id and return. +//! non-blocking futures with 4 core threads in the runtime. +//! Each non-blocking future will print its id and return immediately. +//! Each blocking future will print its id on start, sleep for 1000ms, print +//! its id and return. //! //! Note how non-blocking threads are executed before blocking threads finish //! their task. @@ -43,7 +43,7 @@ impl Future for BlockingFuture { } } -/// This future returns immideatly. +/// This future returns immediately. struct NonBlockingFuture { value: i32, }