rustbook: Make `main` a public function

This will allow it to be used as a crate in a Cargo-based build
This commit is contained in:
Alex Crichton 2016-01-21 15:37:15 -08:00
parent eac0a8bc30
commit 32c56138ec
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ mod test;
static EXIT_STATUS: AtomicIsize = ATOMIC_ISIZE_INIT;
fn main() {
pub fn main() {
let mut term = Term::new();
let cmd: Vec<_> = env::args().collect();