fix: restore //

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

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

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

Loading…
Cancel
Save