Skip to content

Commit bfc5e34

Browse files
author
mikeblome
committed
proofread pass
1 parent 6d1b512 commit bfc5e34

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/cpp/import-export-module.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export module ModuleA;
3232
namespace Bar
3333
{
3434
export int f();
35-
export std::string s();
35+
export double d();
36+
double internal_f(); // not exported
3637
}
3738
```
3839

docs/cpp/modules-cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Modules can be used side by side with header files. A C++ source file can import
1313

1414
## Enable modules in the Microsoft C++ compiler
1515

16-
As of Visual Studio 2019 version 16.2, modules are not fully implemented in the Microsoft C++ compiler. You can use the modules feature to create single-partition modules and to import the Standard Library modules provided by Microsoft. To enable support for modules, compile with `/experimental:modules` and `std:c++latest`. In a Visual Studio project, right-click the project node in **Solution Explorer** and choose **Properties**. Set the **Configuration** drop-down to **All Configurations**, then choose **Configuration Properties** > **C/C++** > **Language** > **Enable C++ Modules (experimental)**.
16+
As of Visual Studio 2019 version 16.2, modules are not fully implemented in the Microsoft C++ compiler. You can use the modules feature to create single-partition modules and to import the Standard Library modules provided by Microsoft. To enable support for modules, compile with `/experimental:modules` and `/std:c++latest`. In a Visual Studio project, right-click the project node in **Solution Explorer** and choose **Properties**. Set the **Configuration** drop-down to **All Configurations**, then choose **Configuration Properties** > **C/C++** > **Language** > **Enable C++ Modules (experimental)**.
1717

1818
Modules must be compiled with the [/Ehsc](../build/reference/eh-exception-handling-model.md) and [/MD](../build/reference/md-mt-ld-use-run-time-library.md) options.
1919

@@ -55,7 +55,7 @@ namespace Bar
5555
}
5656
```
5757

58-
The file **MyProgram.cpp** uses the **import** statement to access the name that is exported by `Foo`. Note that the name `Bar` is exported, but not all of its members.
58+
The file **MyProgram.cpp** uses the **import** statement to access the name that is exported by `Foo`. Note that the name `Bar` is visible here, but not all of its members. Also note that the macro `ANSWER` is not visible.
5959

6060
```cpp
6161

0 commit comments

Comments
 (0)