rust-course icon indicating copy to clipboard operation
rust-course copied to clipboard

“连续六年成为全世界最受喜爱的语言,无 GC 也无需手动内存管理、极高的性能和安全性、过程/OO/函数式编程、优秀的包管理、JS 未来基石" — 工作之余的第二语言来试试 Rust 吧。<<Rust语言圣经>>拥有全面且深入的讲解...

Results 88 rust-course issues
Sort by recently updated
recently updated
newest added

非常感谢这本书的所有作者 我有一个小建议,是关于中英文混合的文案排版的: 根据通用的中文文案排版规则,中英文混合的句子中应使用全角标点符号,如全角括号`(`而不是半角括号`(`。 具体参见:https://github.com/mzlogin/chinese-copywriting-guidelines#%E4%BD%BF%E7%94%A8%E5%85%A8%E8%A7%92%E4%B8%AD%E6%96%87%E6%A0%87%E7%82%B9 我在阅读[所有权](https://course.rs/basic/ownership/ownership.html#%E4%B8%80%E6%AE%B5%E4%B8%8D%E5%AE%89%E5%85%A8%E7%9A%84%E4%BB%A3%E7%A0%81)这一章时,发现了不少半角括号`(`,如[此处`垃圾回收机制(GC)`](https://github.com/sunface/rust-course/blob/main/src/basic/ownership/ownership.md?plain=1#L5)。 如果要统一排版规则,这个改起来工作量有点大...

从现在开始,我们正式踏入了 Rust 大陆,这篇广袤而神秘的世界,在这个世界中,将接触到很多之前都没有听过的概念: 其中"篇"应为"片"

let arr:[String;100] = std::array::from_fn(|i| String::from("rust is good!")); let arr:[String;100] = core::array::from_fn(|i| String::from("rust is good!")); 两种初始化都可以通过,两者有什么不同用意,为什么补充材料中使用core而不是std?

建议将翻页按钮放在页面两边中间位置,而不是必须滚动到页面底部才能看到。

修改示例数据类型为u8。原先的i32长度过长不便01二进制展示;且取反操作会一同反转符号位,或许会造成读者疑惑。 展示输出中使用`{:08b}`格式化并对齐,应该更加直观。 修改后的运行效果如下 ```powershell PS D:\pro\rustworks\playground\demo_binop> cargo run Finished dev [unoptimized + debuginfo] target(s) in 0.07s Running `target\debug\demo_binop.exe` a value is 00000010 b value is 00000011 (a & b) value...

any tools or script can be used to convert these docs to pdf or epub?

目前rustc --cfg的写法很粗略,这里增加了一个示例,方便大家理解rustc --cfg选项的用法

只是改了几个逗号~~

Previous: ![CleanShot 2024-02-04 at 21 01 56@2x](https://github.com/sunface/rust-course/assets/87714218/31e1511f-7600-4ad4-a5a2-73858e62127b) After: ![CleanShot 2024-02-04 at 21 09 00@2x](https://github.com/sunface/rust-course/assets/87714218/84d4aa71-06c7-4632-aa82-4940bfba8a31)