fix: restore //

pull/820/head
zongzi531 3 years ago
parent 57e67bae74
commit 4323afb9f7

@ -116,9 +116,9 @@ where
```rust ```rust
/// 一个SimpleFuture, 它使用顺序的方式一个接一个地运行两个Future /// 一个SimpleFuture, 它使用顺序的方式一个接一个地运行两个Future
/// //
/// 注意: 由于本例子用于演示,因此功能简单,`AndThenFut` 会假设两个 Future 在创建时就可用了. // 注意: 由于本例子用于演示,因此功能简单,`AndThenFut` 会假设两个 Future 在创建时就可用了.
/// 而真实的`Andthen`允许根据第一个`Future`的输出来创建第二个`Future`,因此复杂的多。 // 而真实的`Andthen`允许根据第一个`Future`的输出来创建第二个`Future`,因此复杂的多。
pub struct AndThenFut<FutureA, FutureB> { pub struct AndThenFut<FutureA, FutureB> {
first: Option<FutureA>, first: Option<FutureA>,
second: FutureB, second: FutureB,

@ -420,7 +420,7 @@ impl ArcWake for Task {
```rust ```rust
impl MiniTokio { impl MiniTokio {
/// 从消息通道中接收任务,然后通过 poll 来执行 // 从消息通道中接收任务,然后通过 poll 来执行
fn run(&self) { fn run(&self) {
while let Ok(task) = self.scheduled.recv() { while let Ok(task) = self.scheduled.recv() {
task.poll(); task.poll();

Loading…
Cancel
Save