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 摘要。