book-ja icon indicating copy to clipboard operation
book-ja copied to clipboard

Rust文書の和訳レポジトリ

Results 66 book-ja issues
Sort by recently updated
recently updated
newest added

First of all, thanks for translating! It has helped me learn Rust. Then I found a compile error while learning chapter 12. ``` error[E0782]: trait objects must include the `dyn`...

ch11-01 https://doc.rust-jp.rs/book-ja/ch11-01-writing-tests.html に > 結果が想定通りであることを断定(以下、アサーションという)する。 とあります。原文は > Assert the results are what you expect. です。 assert や assertion は日本語にしにくいですが,「断定」という言葉には「判断・判定」の含みがあり,訳語として合っていないと思います。 どういう訳語がよいか分かりませんが,「断定」よりは「主張」のほうが適当なのではないかと思います。

以下に"dyn"を付与するがあります。(本家は対応済みのようです。) https://github.com/rust-lang-ja/book-ja/blob/master-ja/src/ch12-03-improving-error-handling-and-modularity.md?plain=1#L913 旧 ```rust fn run(config: Config) -> Result { let mut f = File::open(config.filename)?; let mut contents = String::new(); f.read_to_string(&mut contents)?; println!("With text:\n{}", contents); Ok(()) } ``` ↓ 新...

例のソースコードと解説の内容が合っていない箇所を修正しました。 英語版を確認したところ、ソースコードが正のようなので、解説側を修正しました。 https://doc.rust-lang.org/stable/book/ch03-03-how-functions-work.html

* 付録D を更新(https://github.com/rust-lang/book/blob/d48e9884f4e5ecb112095d4e8c55ebc3bce4b009/src/appendix-04-useful-development-tools.md) * 紹介するツールが変更 rls -> rust-analyzer

Listing 11-12のコピーボタンを押下するとコンパイルが通らないコード ([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d841f71ade247072f3c2a358300f7efa)) が出力されるようです。 - ja: [website](https://doc.rust-jp.rs/book-ja/ch11-03-test-organization.html#%E9%9D%9E%E5%85%AC%E9%96%8B%E9%96%A2%E6%95%B0%E3%82%92%E3%83%86%E3%82%B9%E3%83%88%E3%81%99%E3%82%8B), [source code](https://github.com/rust-lang-ja/book-ja/blob/a74e92bc6e6b846d3684390bd9b492fc264e8cb2/src/ch11-03-test-organization.md?plain=1#L141) - en: [website](https://doc.rust-lang.org/1.58.1/book/ch11-03-test-organization.html#testing-private-functions), [source code](https://github.com/rust-lang/book/blob/7de335a05670edbd0108f6d4c2d4b722753cd318/src/ch11-03-test-organization.md?plain=1#L63) ```rs // copied code #![allow(unused)] fn main() { pub fn add_two(a: i32) -> i32 { internal_adder(a,...

4章に対して - コードの更新 - コード表記をファイル参照の形に変更 - コードの追加に伴った説明の追加・修正 を行いました。