From fb1b8919394957b9b3a87a648e95c2a873f520dc Mon Sep 17 00:00:00 2001 From: Azureki <22387028+Azureki@users.noreply.github.com> Date: Mon, 3 Dec 2018 19:11:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0extern=20crate=20rand;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ch02-00-guessing-game-tutorial.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ch02-00-guessing-game-tutorial.md b/src/ch02-00-guessing-game-tutorial.md index 7c43602..313feb5 100644 --- a/src/ch02-00-guessing-game-tutorial.md +++ b/src/ch02-00-guessing-game-tutorial.md @@ -349,6 +349,8 @@ rand = "0.4.0" 文件名: src/main.rs ```rust,ignore +extern crate rand; + use std::io; use rand::Rng;