From 1ad5c015a6cf14bb19d7dd7e0708794b3a1cf884 Mon Sep 17 00:00:00 2001 From: Dorian Weber <weber@informatik.hu-berlin.de> Date: Mon, 8 Feb 2021 10:12:06 +0100 Subject: [PATCH] A comment was wrongly indented. --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 88dd201..4b6f41a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -576,12 +576,12 @@ impl<T> Promise<T> { } /// Returns a future that takes two other futures and completes as soon as - /// one of them returns, canceling the other future before returning. - /// - /// This design guarantees that the two futures passed as input to this - /// function cannot outlive its returned future, enabling us to allow - /// references to variables in the local scope. The passed futures may - /// compute a value, as long as the return type is identical in both cases. +/// one of them returns, canceling the other future before returning. +/// +/// This design guarantees that the two futures passed as input to this +/// function cannot outlive its returned future, enabling us to allow +/// references to variables in the local scope. The passed futures may +/// compute a value, as long as the return type is identical in both cases. pub async fn select<'s,'u,G,E,O,R>(sim: SimContext<'s,G>, either: E, or: O) -> R where E: Future<Output = R> + 'u, O: Future<Output = R> + 'u, R: 'u { use std::mem::transmute; -- GitLab