Skip to content

Commit

Permalink
Update paragraph about rustfmt in Chapter 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Apr 13, 2022
1 parent a74e92b commit 5dd2085
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/ch01-02-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,18 +219,16 @@ between.
スペースを1つあけて、開き波括弧を関数宣言と同じ行に配置するのがいいスタイルです。

<!--
At the time of this writing, an automatic formatter tool called `rustfmt` is
under development. If you want to stick to a standard style across Rust
projects, `rustfmt` will format your code in a particular style. The Rust team
plans to eventually include this tool with the standard Rust distribution, like
`rustc`. So depending on when you read this book, it might already be installed
on your computer! Check the online documentation for more details.
-->

これを執筆している時点では、`rustfmt`と呼ばれる自動整形ツールは開発中です。複数のRustプロジェクトに渡って、
標準的なスタイルに固執したいなら、`rustfmt`は特定のスタイルにコードを整形してくれます。Rustチームは、
最終的に`rustc`のように標準的なRustの配布にこのツールを含むことを計画しています。従って、この本を読んだ時期によっては、
既にコンピュータにインストールされている可能性もあります!詳細は、オンラインのドキュメンテーションを確認してください。
If you want to stick to a standard style across Rust projects, you can use an
automatic formatter tool called `rustfmt` to format your code in a particular
style. The Rust team has included this tool with the standard Rust distribution,
like `rustc`, so it should already be installed on your computer! Check the
online documentation for more details.
-->

複数のRustプロジェクトに渡って、標準的なスタイルに固執したいなら、`rustfmt`は特定のスタイルにコードを整形してくれるでしょう。
Rustチームは、`rustc`のように標準的なRustの配布にこのツールを含んでいるため、既にコンピューターにインストールされているはずです!
詳細は、オンラインのドキュメンテーションを確認してください。

<!--
Inside the `main` function is the following code:
Expand Down

0 comments on commit 5dd2085

Please # to comment.