diff --git a/clang/docs/StandardCPlusPlusModules.rst b/clang/docs/StandardCPlusPlusModules.rst index c9790703e2eed7..c7c04767c7b882 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