[NFC] Fix the typo and the format in the StandardCPlusPlusModules
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 15 Nov 2022 14:52:21 +0000 (22:52 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 15 Nov 2022 14:53:43 +0000 (22:53 +0800)
document

clang/docs/StandardCPlusPlusModules.rst

index c979070..c7c0476 100644 (file)
@@ -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