[clang] aed7959 - [clang-format][doc] Fix a typo introduced in 9aab0db13fb6d

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Fri May 26 02:13:38 PDT 2023


Author: Owen Pan
Date: 2023-05-26T02:11:42-07:00
New Revision: aed795942b78876d004c146133d9077012256aff

URL: https://github.com/llvm/llvm-project/commit/aed795942b78876d004c146133d9077012256aff
DIFF: https://github.com/llvm/llvm-project/commit/aed795942b78876d004c146133d9077012256aff.diff

LOG: [clang-format][doc] Fix a typo introduced in 9aab0db13fb6d

Added: 
    

Modified: 
    clang/docs/ClangFormatStyleOptions.rst
    clang/include/clang/Format/Format.h

Removed: 
    


################################################################################
diff  --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index a8fc651f92a9..8f23a4aa27a9 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -2453,7 +2453,7 @@ the configuration (without a prefix: ``Auto``).
   * ``BBCDS_Allowed`` (in configuration: ``Allowed``)
     Breaking between template declaration and ``concept`` is allowed. The
     actual behavior depends on the content and line breaking rules and
-    penalities.
+    penalties.
 
   * ``BBCDS_Always`` (in configuration: ``Always``)
     Always break before ``concept``, putting it in the line after the

diff  --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index 78c08477e9a1..6a9d435174cd 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -1801,7 +1801,7 @@ struct FormatStyle {
     BBCDS_Never,
     /// Breaking between template declaration and ``concept`` is allowed. The
     /// actual behavior depends on the content and line breaking rules and
-    /// penalities.
+    /// penalties.
     BBCDS_Allowed,
     /// Always break before ``concept``, putting it in the line after the
     /// template declaration.


        


More information about the cfe-commits mailing list