Skip to content

string -> stringBuffer on strcpy_s... page#2993

Merged
TylerMSFT merged 1 commit into
MicrosoftDocs:masterfrom
cartwrightluke:patch-1
Feb 26, 2021
Merged

string -> stringBuffer on strcpy_s... page#2993
TylerMSFT merged 1 commit into
MicrosoftDocs:masterfrom
cartwrightluke:patch-1

Conversation

@cartwrightluke

Copy link
Copy Markdown
Contributor

When this page is viewed on the microsoft documentation page (https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strcpy-s-wcscpy-s-mbscpy-s?view=msvc-160), the variable "string" is highlighted in code as if it were a type, and an array of type "wchar_t string" were being allocated. This is confusing - the "string" variable should be highlighted as if it were a variable.

I've renamed the "string" variable to "stringBuffer" to ensure it highlights correctly without changing the meaning of the code. However, I'm not familiar with this repository or the coding conventions used.

image

When this page is viewed on the microsoft documentation page (https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strcpy-s-wcscpy-s-mbscpy-s?view=msvc-160), the variable "string" is highlighted in code as if it were a type, and an array of type "wchar_t string" were being allocated. This is confusing - the "string" variable should be highlighted as if it were a variable.
I've renamed the "string" variable to "stringBuffer" to ensure it highlights correctly without changing the meaning of the code. However, I'm not familiar with this repository or the coding conventions used.
@PRMerger14

Copy link
Copy Markdown
Contributor

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

@TylerMSFT TylerMSFT left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@cartwrightluke, thank you for improving the docs. I've approved this PR.
We are having some trouble with our publishing pipeline at the moment, so it may be into next week before your changes show up in the live tree.

@TylerMSFT TylerMSFT merged commit 4a4edb3 into MicrosoftDocs:master Feb 26, 2021
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.

4 participants