Skip to content

Copy code funtion always includes fn main  #18

@DominicD

Description

@DominicD

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> {
    ...
}
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions