rustrogueliketutorial
rustrogueliketutorial copied to clipboard
Copy code funtion always includes fn main
Hi,
when I use the copy code button on the code snippets in the tutorial it always includes an fn main. For example Chapter 3 first snippet when I copy I get:
#![allow(unused_variables)]
fn main() {
/// Makes a map with solid boundaries and 400 randomly placed walls. No guarantees that it won't
/// look awful.
pub fn new_map_test() -> Vec<TileType> {
...
}
}
Unfortunately, this is a problem with mdbook
- the tool I use to build the HTML from Markdown. The bug is listed here, but I'm not sure what the status is: https://github.com/rust-lang-nursery/mdBook/issues/712