diff --git a/src/bin/mdbook.rs b/src/bin/mdbook.rs index 4b70d29e..65ee8dbf 100644 --- a/src/bin/mdbook.rs +++ b/src/bin/mdbook.rs @@ -270,10 +270,11 @@ fn serve(args: &ArgMatches) -> Result<(), Box> { std::thread::spawn(move || { ws_server.listen(&*ws_address).unwrap(); }); - println!("\nServing on {}", address); + let serving_url = format!("http://{}", address); + println!("\nServing on: {}", serving_url); if open_browser { - open(format!("http://{}", address)); + open(serving_url); } trigger_on_change(&mut book, move |path, book| {