From 533f90abde6b3700c64abb207098e5a2f2deb7ad Mon Sep 17 00:00:00 2001 From: liuhui Date: Thu, 26 May 2022 15:46:43 +0800 Subject: [PATCH] fix: change someConditionsion typo Signed-off-by: liuhui --- en/contribute/OpenHarmony-cpp-coding-style-guide.md | 2 +- zh-cn/contribute/OpenHarmony-cpp-coding-style-guide.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/contribute/OpenHarmony-cpp-coding-style-guide.md b/en/contribute/OpenHarmony-cpp-coding-style-guide.md index e599a3d5d1..fd84994818 100755 --- a/en/contribute/OpenHarmony-cpp-coding-style-guide.md +++ b/en/contribute/OpenHarmony-cpp-coding-style-guide.md @@ -417,7 +417,7 @@ Example: // Assume that the first line exceeds the length limit. ```cpp if (currentValue > threshold && // Good: After the line break, the logical-AND operators are placed at the end of the line. - someConditionsion) { + someCondition) { DoSomething(); ... } diff --git a/zh-cn/contribute/OpenHarmony-cpp-coding-style-guide.md b/zh-cn/contribute/OpenHarmony-cpp-coding-style-guide.md index 06cae9de85..7e575a0942 100755 --- a/zh-cn/contribute/OpenHarmony-cpp-coding-style-guide.md +++ b/zh-cn/contribute/OpenHarmony-cpp-coding-style-guide.md @@ -417,7 +417,7 @@ default: // Bad: default 未缩进 // 假设下面第一行已经不满足行宽要求 ```cpp if ((currentValue > threshold) && // Good:换行后,逻辑操作符放在行尾 - someConditionsion) { + someCondition) { DoSomething(); ... } -- GitLab