mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2026-08-22 22:23:28 +08:00
Refined 'src/packages_crates_and_modules/the_use_keyword.md'.
This commit is contained in:
6
projects/idomatic_use/Cargo.toml
Normal file
6
projects/idomatic_use/Cargo.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "idomatic_use"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
7
projects/idomatic_use/src/main.rs
Normal file
7
projects/idomatic_use/src/main.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
fn main() {
|
||||
let mut map = HashMap::new();
|
||||
map.insert(1, 2);
|
||||
println! ("{:#?}", map);
|
||||
}
|
||||
Reference in New Issue
Block a user