mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
feat: add rust docs (#815)
* feat: add rust docs * Import std types for built_in_hash doc
This commit is contained in:
@ -135,7 +135,11 @@
|
||||
=== "Rust"
|
||||
|
||||
```rust title=""
|
||||
|
||||
// 使用多种基本数据类型来初始化数组
|
||||
let numbers: Vec<i32> = vec![0; 5];
|
||||
let decimals: Vec<float> = vec![0.0, 5];
|
||||
let characters: Vec<char> = vec!['0'; 5];
|
||||
let bools: Vec<bool> = vec![false; 5];
|
||||
```
|
||||
|
||||
=== "C"
|
||||
|
||||
Reference in New Issue
Block a user