From 2b21c3ebafe57201d82ff93dbf11967c450932c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A3=E5=BC=BA?= Date: Thu, 20 Jan 2022 01:17:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20HashMap=20=E7=AB=A0=E8=8A=82=20=E9=94=99?= =?UTF-8?q?=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: HashMap 章节 错别字 --- book/contents/basic/collections/hashmap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/basic/collections/hashmap.md b/book/contents/basic/collections/hashmap.md index df4bf182..e010581f 100644 --- a/book/contents/basic/collections/hashmap.md +++ b/book/contents/basic/collections/hashmap.md @@ -231,7 +231,7 @@ use std::collections::HashMap; let text = "hello world wonderful world"; let mut map = HashMap::new(); -// 根据空格来且分字符串(英文单词都是通过空格切分) +// 根据空格来切分字符串(英文单词都是通过空格切分) for word in text.split_whitespace() { let count = map.entry(word).or_insert(0); *count += 1;