Skip to content

Commit

Permalink
docs/zh/code-style.md: Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Tao <[email protected]>
  • Loading branch information
Rtoax committed Feb 11, 2025
1 parent 008abcf commit f06ddb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zh/code-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ULPatch 使用 **Unix format** 而不是 **DOS or Mac format**。
如果你的文件是 **DOS or Mac format**,你可能经常在 UNIX 下看到源代码行尾存在`^M`


## 编成标准
## 编程标准

- 不要使用 `%s`+`strerror(errno)` 的方式打印错误信息,而是使用`%m`
- 记住,在必要的时候,在函数中设置`errno`
Expand Down

0 comments on commit f06ddb6

Please sign in to comment.