Skip to content

Commit bfaaef3

Browse files
committed
docs: remove leading underscores
1 parent bd8a9b0 commit bfaaef3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/chapter_array_and_linkedlist/list.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,15 +684,15 @@
684684

685685
```rust title="list.rs"
686686
// 通过索引遍历列表
687-
let mut _count = 0;
687+
let mut count = 0;
688688
for i in 0..nums.len() {
689-
_count += nums[i];
689+
count += nums[i];
690690
}
691691

692692
// 直接遍历列表元素
693-
_count = 0;
693+
count = 0;
694694
for num in &nums {
695-
_count += num;
695+
count += num;
696696
}
697697
```
698698

docs/chapter_hashing/hash_map.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@
254254

255255
/* 查询操作 */
256256
// 向哈希表中输入键 key ,得到值 value
257-
let _name: Option<&String> = map.get(&15937);
257+
let name: Option<&String> = map.get(&15937);
258258

259259
/* 删除操作 */
260260
// 在哈希表中删除键值对 (key, value)
261-
let _removed_value: Option<String> = map.remove(&10583);
261+
let removed_value: Option<String> = map.remove(&10583);
262262
```
263263

264264
=== "C"

0 commit comments

Comments
 (0)