From f06ddb64bc54937bf5622109e7af59b533566bc8 Mon Sep 17 00:00:00 2001 From: Rong Tao Date: Tue, 11 Feb 2025 08:52:26 +0800 Subject: [PATCH] docs/zh/code-style.md: Fix typo Signed-off-by: Rong Tao --- docs/zh/code-style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh/code-style.md b/docs/zh/code-style.md index 81ee6685..8b2728e2 100644 --- a/docs/zh/code-style.md +++ b/docs/zh/code-style.md @@ -36,7 +36,7 @@ ULPatch 使用 **Unix format** 而不是 **DOS or Mac format**。 如果你的文件是 **DOS or Mac format**,你可能经常在 UNIX 下看到源代码行尾存在`^M`。 -## 编成标准 +## 编程标准 - 不要使用 `%s`+`strerror(errno)` 的方式打印错误信息,而是使用`%m`。 - 记住,在必要的时候,在函数中设置`errno`。