Skip to content

Commit

Permalink
style-guide: Consistently refer to rustfmt as rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Jun 22, 2023
1 parent 2c0dd90 commit 4c5bb06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/doc/style-guide/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Rust code has similar formatting, less mental effort is required to comprehend a
new project, lowering the barrier to entry for new developers.

Thus, there are productivity benefits to using a formatting tool (such as
rustfmt), and even larger benefits by using a community-consistent formatting,
typically by using a formatting tool's default settings.
`rustfmt`), and even larger benefits by using a community-consistent
formatting, typically by using a formatting tool's default settings.


## Formatting conventions
Expand Down
4 changes: 2 additions & 2 deletions src/doc/style-guide/src/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ use b;
Because of `macro_use`, attributes must also start a new group and prevent
re-ordering.

Note that tools which only have access to syntax (such as Rustfmt) cannot tell
which imports are from an external crate or the std lib, etc.
Note that tools which only have access to syntax (such as `rustfmt`) cannot
tell which imports are from an external crate or the std lib, etc.


#### Ordering list import
Expand Down
2 changes: 1 addition & 1 deletion src/doc/style-guide/src/principles.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ following principles (in rough priority order):

* application
- ease of manual application
- ease of implementation (in Rustfmt, and in other tools/editors/code generators)
- ease of implementation (in `rustfmt`, and in other tools/editors/code generators)
- internal consistency
- simplicity of formatting rules

0 comments on commit 4c5bb06

Please sign in to comment.