Skip to content

Commit 29cb839

Browse files
authored
Merge pull request #200 from koic/update_paragraph_about_rustfmt_in_chapter_1_2
Update paragraph about rustfmt in Chapter 1.2
2 parents 1c198ab + af80a43 commit 29cb839

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/ch01-02-hello-world.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,16 @@ between.
219219
スペースを1つあけて、開き波括弧を関数宣言と同じ行に配置するのがいいスタイルです。
220220

221221
<!--
222-
At the time of this writing, an automatic formatter tool called `rustfmt` is
223-
under development. If you want to stick to a standard style across Rust
224-
projects, `rustfmt` will format your code in a particular style. The Rust team
225-
plans to eventually include this tool with the standard Rust distribution, like
226-
`rustc`. So depending on when you read this book, it might already be installed
227-
on your computer! Check the online documentation for more details.
228-
-->
229-
230-
これを執筆している時点では、`rustfmt`と呼ばれる自動整形ツールは開発中です。複数のRustプロジェクトに渡って、
231-
標準的なスタイルに固執したいなら、`rustfmt`は特定のスタイルにコードを整形してくれます。Rustチームは、
232-
最終的に`rustc`のように標準的なRustの配布にこのツールを含むことを計画しています。従って、この本を読んだ時期によっては、
233-
既にコンピュータにインストールされている可能性もあります!詳細は、オンラインのドキュメンテーションを確認してください。
222+
If you want to stick to a standard style across Rust projects, you can use an
223+
automatic formatter tool called `rustfmt` to format your code in a particular
224+
style. The Rust team has included this tool with the standard Rust distribution,
225+
like `rustc`, so it should already be installed on your computer! Check the
226+
online documentation for more details.
227+
-->
228+
229+
複数のRustプロジェクトに渡って標準的なスタイルにこだわりたいなら、`rustfmt`を使うことでコードを決まったスタイルに整形できるでしょう。
230+
Rustチームは、`rustc`のように標準的なRustの配布にこのツールを含んでいるため、既にコンピューターにインストールされているはずです!
231+
詳細は、オンラインのドキュメンテーションを確認してください。
234232

235233
<!--
236234
Inside the `main` function is the following code:

0 commit comments

Comments
 (0)