From: Hu Jialun <hujialun@comp.nus.edu.sg>
To: "张乐 Zhang Le" <r0bertz@gentoo.org>, "Alex Shi" <alexs@kernel.org>,
"Jonathan Corbet" <corbet@lwn.net>
Cc: Hu Jialun <hujialun@comp.nus.edu.sg>,
Wei Ming Chen <jj251510319013@gmail.com>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] docs/zh_CN: Remove the Microsoft rhetoric
Date: Sun, 4 Jul 2021 00:48:34 +0800 [thread overview]
Message-ID: <20210703164834.460447-1-hujialun@comp.nus.edu.sg> (raw)
Update Chinese translation on par with original English coding-style.rst
Related commit b7592e5b82db19b72a34b471f3296ad3f651c8b9
Signed-off-by: Hu Jialun <hujialun@comp.nus.edu.sg>
---
This is more of a crude first attempt to begin getting accustomed to
mailing list conventions of open-source communities.
While efforts have been made to conform to the patch submission
conventions, there is still inevitably certain omissions.
Any corrections and suggestions would be greatly appreciated! :)
Documentation/translations/zh_CN/process/coding-style.rst | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/translations/zh_CN/process/coding-style.rst b/Documentation/translations/zh_CN/process/coding-style.rst
index b8c484a84d10..638d714bec83 100644
--- a/Documentation/translations/zh_CN/process/coding-style.rst
+++ b/Documentation/translations/zh_CN/process/coding-style.rst
@@ -268,8 +268,7 @@ C 程序员不使用类似 ThisVariableIsATemporaryCounter 这样华丽的名字
``count_active_users()`` 或者类似的名字,你不应该叫它 ``cntuser()`` 。
在函数名中包含函数类型 (所谓的匈牙利命名法) 是脑子出了问题——编译器知道那些类
-型而且能够检查那些类型,这样做只能把程序员弄糊涂了。难怪微软总是制造出有问题
-的程序。
+型而且能够检查那些类型,这样做只能把程序员弄糊涂了。
本地变量名应该简短,而且能够表达相关的含义。如果你有一些随机的整数型的循环计
数器,它应该被称为 ``i`` 。叫它 ``loop_counter`` 并无益处,如果它没有被误解的
--
2.32.0
next reply other threads:[~2021-07-03 16:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-03 16:48 Hu Jialun [this message]
2021-07-04 2:54 ` [PATCH] docs/zh_CN: Remove the Microsoft rhetoric Hu Haowen
2021-07-12 17:12 ` Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210703164834.460447-1-hujialun@comp.nus.edu.sg \
--to=hujialun@comp.nus.edu.sg \
--cc=alexs@kernel.org \
--cc=corbet@lwn.net \
--cc=jj251510319013@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=r0bertz@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).