add new chinese translations
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
# rustfmt
|
||||
|
||||
> 格式化 Rust 源代码的工具。
|
||||
> 更多信息:<https://github.com/rust-lang/rustfmt>.
|
||||
> 格式化 Rust 源代码。
|
||||
> 更多信息:<https://github.com/rust-lang/rustfmt>。
|
||||
|
||||
- 格式化文件,就地覆盖原始文件:
|
||||
- 格式化一个文件,覆盖原文件:
|
||||
|
||||
`rustfmt {{路径/到/源文件.rs}}`
|
||||
`rustfmt {{path/to/source.rs}}`
|
||||
|
||||
- 检查文件的格式并在控制台上显示所有更改:
|
||||
- 检查一个文件的格式并在控制台上显示任何更改:
|
||||
|
||||
`rustfmt --check {{路径/到/源文件.rs}}`
|
||||
`rustfmt --check {{path/to/source.rs}}`
|
||||
|
||||
- 格式化之前,备份所有修改过的文件(原始文件的扩展名为 `.bk`):
|
||||
- 在格式化之前备份任何修改过的文件(原文件将被重命名为 `.bk` 扩展名):
|
||||
|
||||
`rustfmt --backup {{路径/到/源文件.rs}}`
|
||||
`rustfmt --backup {{path/to/source.rs}}`
|
Reference in New Issue
Block a user