mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-22 20:22:18 +08:00
添加extern crate rand;
This commit is contained in:
parent
6d65062bde
commit
fb1b891939
@ -349,6 +349,8 @@ rand = "0.4.0"
|
|||||||
<span class="filename">文件名: src/main.rs</span>
|
<span class="filename">文件名: src/main.rs</span>
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
|
extern crate rand;
|
||||||
|
|
||||||
use std::io;
|
use std::io;
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user