diff --git a/src/lib.rs b/src/lib.rs index 88dd2017d7f7b8c72d8efc2432008226473effc2..4b6f41a0408c1d4d2e946ac53097b2f658817f79 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;