Skip to content

Commit

Permalink
Merge pull request #2304 from rashiq/rashiq-chapter-1.2-rusftmt
Browse files Browse the repository at this point in the history
Update paragraph about rustfmt in Chapter 1.2
  • Loading branch information
carols10cents authored Dec 11, 2020
2 parents 015d148 + b0012bf commit 15b20d3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ch01-02-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@ requires these around all function bodies. It’s good style to place the openin
curly bracket on the same line as the function declaration, adding one space in
between.

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.
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.

Inside the `main` function is the following code:

Expand Down

0 comments on commit 15b20d3

Please sign in to comment.