add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -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}}`