Skip to content

Commit 8bdff6b

Browse files
committed
doc fixes
1 parent a697837 commit 8bdff6b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

futures-util/src/compat/executor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub type ExecutorFuture01 = Compat<NeverError<FutureObj<'static, ()>>, BoxedExec
2323
pub trait Executor01CompatExt: Executor01<ExecutorFuture01>
2424
+ Clone + Send + 'static
2525
{
26-
/// Creates an exector compatable with futures 0.3.
26+
/// Creates an `Executor` compatable with futures 0.3.
2727
fn compat(self) -> CompatExecutor<Self>
2828
where Self: Sized;
2929
}
@@ -39,7 +39,7 @@ where E: Executor01<ExecutorFuture01>,
3939
}
4040
}
4141

42-
/// Converts `futures 0.1` Executors into `futures 0.3` Executors
42+
/// Converts a futures 0.1 `Executor` into a futures 0.3 `Executor`.
4343
#[derive(Clone)]
4444
pub struct CompatExecutor<E> {
4545
exec: E

futures-util/src/compat/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,10 @@ impl Wake for Current {
134134
}
135135
}
136136

137-
/// Extension trait for futures 0.1.
137+
/// Extension trait for futures 0.1 Futures.
138138
pub trait Future01Ext: Future01 {
139-
/// Converts the future into a futures 0.3 future.
139+
/// Converts a futures 0.1 `Future<Item = T, Error = E>` into a
140+
/// futures 0.3 `Future<Output = Result<T, E>>`.
140141
fn compat(self) -> Compat<Self, ()> where Self: Sized {
141142
Compat {
142143
inner: self,

0 commit comments

Comments
 (0)