From e878bbf8d878059bc8652fe2e6d6a726ed43c537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E4=BF=8A=E5=9F=8E?= Date: Tue, 3 Dec 2024 15:31:35 +0800 Subject: [PATCH] update 17-10 code --- src/ch17-02-concurrency-with-async.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch17-02-concurrency-with-async.md b/src/ch17-02-concurrency-with-async.md index b4857a7..3367832 100644 --- a/src/ch17-02-concurrency-with-async.md +++ b/src/ch17-02-concurrency-with-async.md @@ -165,7 +165,7 @@ hi number 9 from the first task! 文件名:src/main.rs ```rust -{{#rustdoc_include ../listings/ch17-async-await/listing-17-10/src/main.rs:channel}} +{{#rustdoc_include ../listings/ch17-async-await/listing-17-10/src/main.rs:many-messages}} ```
示例 17-10:通过异步信道发送和接收多个消息并在每个消息之间通过 `await` 休眠