amethyst / amethyst/rustrogueliketutorial

Copy code funtion always includes fn main

未关闭
#18 1 条评论 0 个 reaction 已指派 1 人 已被 @thebracket 认领 在 GitHub 查看
bug
主要语言
Rust
星标
970
派生
166
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。