amethyst / amethyst/rustrogueliketutorial

Copy code funtion always includes fn main

Đang mở
#18 1 bình luận 0 reaction 1 người được giao Được @thebracket nhận Xem trên GitHub
bug
Ngôn ngữ chính
Rust
Star
970
Fork
166
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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](http://bfnightly.bracketproductions.com/rustbook/chapter_3.html) 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 {
...
}
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.