Skip to content

✏️ fix[typo]: Update tutorial-import-stl-named-module.md #4727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

qennenat
Copy link
Contributor

@qennenat qennenat commented Sep 26, 2023

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...

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".

is wrong and should be reversed to...

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".

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.
@prmerger-automator
Copy link
Contributor

@edmund-leibert : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 67026a8:

✅ Validation status: passed

File Status Preview URL Details
docs/cpp/tutorial-import-stl-named-module.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@qennenat
Copy link
Contributor Author

qennenat commented Sep 26, 2023

Feel free to let me know if my correction is incorrect. Other than this minor error, this tutorial was well written.

Look forward to hearing your input! 🙂

Copy link
Collaborator

@TylerMSFT TylerMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for correcting that. Most appreciated.

@TylerMSFT
Copy link
Collaborator

#sign-off

@TylerMSFT
Copy link
Collaborator

#hold-off

@TylerMSFT
Copy link
Collaborator

Actually, the original is correct. I made the same mistake you did when I read it.
What I'll do is reword it so it's clearer.

Copy link
Collaborator

@TylerMSFT TylerMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I modified the wording to hopefully make it more clear.
The original was correct, but obviously confusing as it tripped us both up.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 1994036:

✅ Validation status: passed

File Status Preview URL Details
docs/cpp/tutorial-import-stl-named-module.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@TylerMSFT
Copy link
Collaborator

#sign-off

@Court72 Court72 merged commit d7b188c into MicrosoftDocs:main Sep 27, 2023
@TylerMSFT
Copy link
Collaborator

TylerMSFT commented Sep 27, 2023

sorry - commented on an unrefreshed page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants