From 1f3419573c58947408d0d4dcc300e48566a754d2 Mon Sep 17 00:00:00 2001 From: yuk1ty Date: Fri, 27 Oct 2023 16:45:17 +0900 Subject: [PATCH 1/2] Aligned headline level with try_join section --- src/06_multiple_futures/02_join.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/06_multiple_futures/02_join.md b/src/06_multiple_futures/02_join.md index c881826e..b88c88a9 100644 --- a/src/06_multiple_futures/02_join.md +++ b/src/06_multiple_futures/02_join.md @@ -3,7 +3,7 @@ The `futures::join` macro makes it possible to wait for multiple different futures to complete while executing them all concurrently. -# `join!` +## `join!` When performing multiple asynchronous operations, it's tempting to simply `.await` them in a series: From 062e081e6b1cb69d50357b22eb477792791cb433 Mon Sep 17 00:00:00 2001 From: yuk1ty Date: Fri, 27 Oct 2023 16:48:23 +0900 Subject: [PATCH 2/2] Capitalize the first letter in comment --- src/02_execution/05_io.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/02_execution/05_io.md b/src/02_execution/05_io.md index 196b203b..808fd14b 100644 --- a/src/02_execution/05_io.md +++ b/src/02_execution/05_io.md @@ -84,7 +84,7 @@ event occurs. In the case of our `SocketRead` example above, the impl Socket { fn set_readable_callback(&self, waker: Waker) { // `local_executor` is a reference to the local executor. - // this could be provided at creation of the socket, but in practice + // This could be provided at creation of the socket, but in practice // many executor implementations pass it down through thread local // storage for convenience. let local_executor = self.local_executor;