Merge pull request #258 from DaiQiangReal/patch-2

fix: HashMap 章节 错别字
pull/262/head
Sunface 3 years ago committed by GitHub
commit 75e78f4aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save