From 79e5039abb9f32b7e472d5da1b574e69b0b78ccf Mon Sep 17 00:00:00 2001 From: wusongqing Date: Fri, 16 Dec 2022 05:49:46 +0000 Subject: [PATCH] correct incorrect decription against https://gitee.com/openharmony/docs/issues/I65DWU Signed-off-by: wusongqing --- en/contribute/OpenHarmony-JavaScript-coding-style-guide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/contribute/OpenHarmony-JavaScript-coding-style-guide.md b/en/contribute/OpenHarmony-JavaScript-coding-style-guide.md index 939378ea64..731d39369c 100755 --- a/en/contribute/OpenHarmony-JavaScript-coding-style-guide.md +++ b/en/contribute/OpenHarmony-JavaScript-coding-style-guide.md @@ -170,9 +170,9 @@ function render(container, dataSource) { #### Rule 2.3 The use of braces must comply with the following conventions: -1. If the value in the braces is empty, the value can be abbreviated as `{}` without a newline. -2. The left braces do not contain a line feed, and the left braces are followed by a line feed. -3. Line feeds before the right brace. If there is `else` or `catch` after the brace, line feeds are not required. In other cases, line feeds are required. +1. If the value in the braces is empty, the value can be abbreviated as `{}` without a line feed. +2. Do not use a line feed before the left brace, and use one after it. +3. Use a line feed before the right brace, and use one after it as long as it is not followed by `else` or `catch`. #### Rule 2.4 Implementations of conditional and loop statements must be enclosed in braces, even if there is only one statement. -- GitLab