From b381ad23aea2914bf32d72465511f88ba07fd106 Mon Sep 17 00:00:00 2001 From: sunface Date: Fri, 21 Jan 2022 09:04:12 +0800 Subject: [PATCH] fix typo --- .../advance/concurrency-with-threads/message-passing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/advance/concurrency-with-threads/message-passing.md b/book/contents/advance/concurrency-with-threads/message-passing.md index 706e68b9..0c38f023 100644 --- a/book/contents/advance/concurrency-with-threads/message-passing.md +++ b/book/contents/advance/concurrency-with-threads/message-passing.md @@ -314,7 +314,7 @@ Bingo,更奇怪的事出现了,第一条消息瞬间发送完成,没有阻 ## 传输多种类型的数据 之前提到过,一个消息通道只能传输一种类型的数据,如果你想要传输多种类型的数据,可以为每个类型创建一个通道,你也可以使用枚举类型来实现: ```rust -se std::sync::mpsc::{self, Receiver, Sender}; +use std::sync::mpsc::{self, Receiver, Sender}; enum Fruit { Apple(u8),