From 17a6f6fabf4e4d84e5d2807f49f22fc2bd1b359c Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Sat, 29 Feb 2020 07:17:49 -0800 Subject: [PATCH] macros: fix select! documentation formatting (#2283) --- tokio/src/macros/select.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tokio/src/macros/select.rs b/tokio/src/macros/select.rs index 30b2b171c..51b6fcd60 100644 --- a/tokio/src/macros/select.rs +++ b/tokio/src/macros/select.rs @@ -4,7 +4,7 @@ /// The `select!` macro must be used inside of async functions, closures, and /// blocks. /// -/// The `select` macro accepts one or more branches with the following pattern: +/// The `select!` macro accepts one or more branches with the following pattern: /// /// ```text /// = (, if )? => , @@ -24,7 +24,7 @@ /// expression. /// /// Additionally, each branch may include an optional `if` precondition. This -/// precondition is evaluated **before** the . If the +/// precondition is evaluated **before** the ``. If the /// precondition returns `false`, the branch is entirely disabled. This /// capability is useful when using `select!` within a loop. /// @@ -41,7 +41,7 @@ /// 4. Once an `` returns a value, attempt to apply the value /// to the provided ``, if the pattern matches, evaluate `` /// and return. If the pattern **does not** match, disable the current branch -/// and for the remainder of the current call to `select!. Continue from step 3. +/// and for the remainder of the current call to `select!`. Continue from step 3. /// 5. If **all** branches are disabled, evaluate the `else` expression. If none /// is provided, panic. /// @@ -210,7 +210,7 @@ /// } /// ``` /// -/// Using the same future in multiple select! expressions can be done by passing +/// Using the same future in multiple `select!` expressions can be done by passing /// a reference to the future. Doing so requires the future to be [`Unpin`]. A /// future can be made [`Unpin`] by either using [`Box::pin`] or stack pinning. ///