[clang] de034cf - [NFC] Fix the typo and the format in the StandardCPlusPlusModules

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 15 06:54:13 PST 2022


Author: Chuanqi Xu
Date: 2022-11-15T22:53:43+08:00
New Revision: de034cf3136dfe421189d8627654aad0313cf988

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

LOG: [NFC] Fix the typo and the format in the StandardCPlusPlusModules
document

Added: 
    

Modified: 
    clang/docs/StandardCPlusPlusModules.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/StandardCPlusPlusModules.rst b/clang/docs/StandardCPlusPlusModules.rst
index c9790703e2eed..c7c04767c7b88 100644
--- a/clang/docs/StandardCPlusPlusModules.rst
+++ b/clang/docs/StandardCPlusPlusModules.rst
@@ -275,7 +275,9 @@ Module name requirement
 
 [module.unit]p1 says:
 
-> All module-names either beginning with an identifier consisting of std followed by zero
+::
+
+  All module-names either beginning with an identifier consisting of std followed by zero
   or more digits or containing a reserved identifier ([lex.name]) are reserved and shall not
   be specified in a module-declaration; no diagnostic is required. If any identifier in a reserved
   module-name is a reserved identifier, the module name is reserved for use by C++ implementations;
@@ -297,7 +299,7 @@ in the front of the module declaration like:
 .. code-block:: c++
 
   # __LINE_NUMBER__ __FILE__ 1 3
-  export moudle std;
+  export module std;
 
 Here the `__LINE_NUMBER__` is the actual line number of the corresponding line. The `__FILE__` means the filename
 of the translation unit. The `1` means the following is a new file. And `3` means this is a system header/file so


        


More information about the cfe-commits mailing list