rust-by-example-cn icon indicating copy to clipboard operation
rust-by-example-cn copied to clipboard

Rust By Example 中文版(包含在线代码编辑器)

Results 11 rust-by-example-cn issues
Sort by recently updated
recently updated
newest added

如何生成pdf,epub,放在手机上看?

- [ ] 闭包(fn/closures) - 考虑将代码中的注释外移,此处链接标记无效。不过也存在解释位置的问题,这需要考虑。 ![image](https://user-images.githubusercontent.com/70502828/151806316-6baf3b89-6b21-4a15-b055-17980445c8ee.png) - [ ] std 中的例子(fn/closures/closure_examples) - 奇怪的高亮,对比标记并没有什么不一样的地方。内容无内容,只是追求英文版一般的行内代码块高亮。 ![image](https://user-images.githubusercontent.com/70502828/151806969-276fc440-4c61-43b3-af3d-7fa695d39b87.png) - [ ] Iterator::find(fn/closures/closure_examples/iter_find) - 更新 | 这个“谓词”是看不懂... ![image](https://user-images.githubusercontent.com/70502828/151807522-01d22904-3754-469b-83f3-a05f4a1cb722.png)

`The enum keyword allows the creation of a type which may be one of a few different variants.` 这句中 variant 可翻译为变种。

🙏 [rustwasm](https://rustwasm.github.io/docs/book/)

调整代码注释:增加部分代码的输出结果展示

更新为where子句,代码看起来更清晰。

https://github.com/rust-lang-cn/rust-by-example-cn/blob/01af1e4d5818e1be5a30d130039dd159b5016c6f/src/custom_types.md?plain=1#L8

建议改下网页里代码注释的字体样式,这样太难看了,很多字不仔细看跟本认不出

同步conventions.md官方文档