diff --git a/en/contribute/OpenHarmony-cpp-coding-style-guide.md b/en/contribute/OpenHarmony-cpp-coding-style-guide.md index e599a3d5d16cf6dd9bc6784dbe2db069d188cd65..fd84994818055a79c5af1a08ac1d1e4428910e97 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 06cae9de859ea1d4e33b2ba203c8250be9ad43df..7e575a0942c230baa09f7f97974e39ffb99e8bbf 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(); ... }