[clang] [clang-format][Docs] Remove duplicated words in AlignCaseColons description (PR #77368)

Yehezkel Bernat via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 8 12:15:03 PST 2024


https://github.com/YehezkelShB created https://github.com/llvm/llvm-project/pull/77368

A few words got duplicated in the documentation of AlignCaseColons option for AlignConsecutiveShortCaseStatements

Remove them to improve readability

>From ea5fa6fadd91d3c2e53e012fe5599a3bb8ed94e8 Mon Sep 17 00:00:00 2001
From: Yehezkel Bernat <yehezkelshb at gmail.com>
Date: Mon, 8 Jan 2024 22:13:09 +0200
Subject: [PATCH] [clang-format][Docs] Remove duplicated words in
 AlignConsecutiveShortCaseStatements.AlignCaseColons description

A few words got duplicated in the documentation of AlignCaseColons option for AlignConsecutiveShortCaseStatements

Remove them to improve readability
---
 clang/docs/ClangFormatStyleOptions.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index 3d42571e82d8a0..08cc3050d53b29 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -868,7 +868,7 @@ the configuration (without a prefix: ``Auto``).
       }
 
   * ``bool AlignCaseColons`` Whether aligned case labels are aligned on the colon, or on the
-    , or on the tokens after the colon.
+    tokens after the colon.
 
     .. code-block:: c++
 



More information about the cfe-commits mailing list