From 390e83c9b9f2cfc31c59ef085f7746a8fc1b4a96 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 29 May 2019 11:56:52 +0200 Subject: [PATCH] typo fix and doc improvement Signed-off-by: Wolfgang Bumiller --- src/tools/futures.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/futures.rs b/src/tools/futures.rs index 2b31164c..8cea6f95 100644 --- a/src/tools/futures.rs +++ b/src/tools/futures.rs @@ -49,6 +49,8 @@ pub struct Cancellable { /// Reference to a cancellable future. Multiple instances may exist simultaneously. /// /// This allows cancelling another future. If the future already finished, nothing happens. +/// +/// This can be cloned to be used in multiple places. #[derive(Clone)] pub struct Canceller(Arc>>>); @@ -76,7 +78,7 @@ impl Cancellable { Ok((this, canceller)) } - /// Create another `Canceller` for his future.. + /// Create another `Canceller` for this future. pub fn canceller(&self) -> Canceller { Canceller(self.guard.clone()) }