From c8d8b772df93b933894ad58e818bd0e1dbaef5b0 Mon Sep 17 00:00:00 2001 From: Echo Date: Wed, 15 Jun 2022 22:53:37 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/async-rust/tokio/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/async-rust/tokio/stream.md b/src/async-rust/tokio/stream.md index 58b1773a..0ba67067 100644 --- a/src/async-rust/tokio/stream.md +++ b/src/async-rust/tokio/stream.md @@ -93,7 +93,7 @@ async fn main() -> mini_redis::Result<()> { - [`into_stream`](https://docs.rs/mini-redis/0.4.1/mini_redis/client/struct.Subscriber.html#method.into_stream) 会将 `Subscriber` 变成一个 `stream` - 在 `stream` 上调用 `next` 方法要求该 `stream` 被固定住([`pinned`](https://doc.rust-lang.org/std/pin/index.html)),因此需要调用 `tokio::pin!` -> 关于 Pin 的详细解读,可以阅读[这篇文章](https://course.rs/async/pin-unpin.html) +> 关于 Pin 的详细解读,可以阅读[这篇文章](https://course.rs/async-rust/async/pin-unpin.html) 大家可以去掉 `pin!` 的调用,然后观察下报错,若以后你遇到这种错误,可以尝试使用下 `pin!`。