Skip to content

Commit 32c5613

Browse files
committed
rustbook: Make main a public function
This will allow it to be used as a crate in a Cargo-based build
1 parent eac0a8b commit 32c5613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustbook/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mod test;
3636

3737
static EXIT_STATUS: AtomicIsize = ATOMIC_ISIZE_INIT;
3838

39-
fn main() {
39+
pub fn main() {
4040
let mut term = Term::new();
4141
let cmd: Vec<_> = env::args().collect();
4242

0 commit comments

Comments
 (0)