Skip to content

Commit 67026a8

Browse files
authored
✏️ fix[typo]: Update tutorial-import-stl-named-module.md
The code snippets were incorrectly reversed. The snippet "$Env:VCToolsInstallDir\modules\std.ixx" is specific to PowerShell. In PowerShell, environment variables are accessed using the $Env: prefix. The snippet "%VCToolsInstallDir%\modules\std.ixx" is for the Command Prompt (CMD). In CMD, environment variables are enclosed in percent signs (%). So, the original phrase... "If you use PowerShell, substitute "$Env:VCToolsInstallDir\modules\std.ixx" for "%VCToolsInstallDir%\modules\std.ixx" is wrong and should be reversed.
1 parent ed2f6b9 commit 67026a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/tutorial-import-stl-named-module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The statement `import std;` or `import std.compat;` imports the standard library
6060

6161
### Example: `std`
6262

63-
1. Open a x86 Native Tools Command Prompt for VS: from the Windows **Start** menu, type *x86 native* and the prompt should appear in the list of apps. Ensure that the prompt is for Visual Studio 2022 preview version 17.5 or above. You'll get errors if you use the wrong version of the prompt. The examples used in this tutorial are for the CMD shell. If you use PowerShell, substitute `"$Env:VCToolsInstallDir\modules\std.ixx"` for `"%VCToolsInstallDir\modules\std.ixx"`.
63+
1. Open a x86 Native Tools Command Prompt for VS: from the Windows **Start** menu, type *x86 native* and the prompt should appear in the list of apps. Ensure that the prompt is for Visual Studio 2022 preview version 17.5 or above. You'll get errors if you use the wrong version of the prompt. The examples used in this tutorial are for the CMD shell. If you use PowerShell, substitute `"%VCToolsInstallDir\modules\std.ixx"` for `"$Env:VCToolsInstallDir\modules\std.ixx"`.
6464
1. Create a directory, such as `%USERPROFILE%\source\repos\STLModules`, and make it the current directory. If you choose a directory that you don't have write access to, you'll get errors such as not being able to open the output file `std.ifc`.
6565
1. Compile the `std` named module with the following command:
6666

0 commit comments

Comments
 (0)