mirror of
https://github.com/krahets/hello-algo.git
synced 2026-05-12 19:47:33 +08:00
cargo fmt rust code (#1131)
* cargo fmt code * Add empty line to seperate unrelated comments * Fix review * Update bubble_sort.rs * Update merge_sort.rs --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@@ -151,10 +151,13 @@ pub fn main() {
|
||||
|
||||
/* 查询操作 */
|
||||
// 向哈希表中输入键 key ,得到值 value
|
||||
println!("\n输入学号 13276,查询到姓名 {}", match map.get(13276) {
|
||||
Some(value) => value,
|
||||
None => "Not a valid Key"
|
||||
});
|
||||
println!(
|
||||
"\n输入学号 13276,查询到姓名 {}",
|
||||
match map.get(13276) {
|
||||
Some(value) => value,
|
||||
None => "Not a valid Key",
|
||||
}
|
||||
);
|
||||
|
||||
/* 删除操作 */
|
||||
// 在哈希表中删除键值对 (key, value)
|
||||
|
||||
Reference in New Issue
Block a user