未验证 提交 042d14a0 编写于 作者: O openharmony_ci 提交者: Gitee

!4427 【OpenHarmony开源贡献者计划2022】fix: change someConditionsion typo

Merge pull request !4427 from rtos_ming/someConditionsion
...@@ -417,7 +417,7 @@ Example: ...@@ -417,7 +417,7 @@ Example:
// Assume that the first line exceeds the length limit. // Assume that the first line exceeds the length limit.
```cpp ```cpp
if (currentValue > threshold && // Good: After the line break, the logical-AND operators are placed at the end of the line. if (currentValue > threshold && // Good: After the line break, the logical-AND operators are placed at the end of the line.
someConditionsion) { someCondition) {
DoSomething(); DoSomething();
... ...
} }
......
...@@ -417,7 +417,7 @@ default: // Bad: default 未缩进 ...@@ -417,7 +417,7 @@ default: // Bad: default 未缩进
// 假设下面第一行已经不满足行宽要求 // 假设下面第一行已经不满足行宽要求
```cpp ```cpp
if ((currentValue > threshold) && // Good:换行后,逻辑操作符放在行尾 if ((currentValue > threshold) && // Good:换行后,逻辑操作符放在行尾
someConditionsion) { someCondition) {
DoSomething(); DoSomething();
... ...
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册