Skip to content

Commit cca9409

Browse files
committed
Acrolynx fixes.
1 parent 3987a29 commit cca9409

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/code-quality/c6392.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ This rule was added in Visual Studio 2022 17.8.
1313

1414
## Remarks
1515

16-
In C++, we have streams of wide characters, like `std::wostringstream`, and streams of non-wide characters like `std::ostringstream`. Trying to print a wide character literal to a non-wide string will call the `void*` overload of `operator<<`. This results in printing the address of the wide character literal instead of the value.
16+
In C++, we have streams of wide characters, like `std::wostringstream`, and streams of nonwide characters like `std::ostringstream`. Trying to print a wide character literal to a nonwide string calls the `void*` overload of `operator<<`. This overload prints the address of the wide string literal instead of the value.
1717

1818
Code analysis name: `STREAM_OUTPUT_VOID_PTR`
1919

2020
## Example
2121

22-
In the following code snippet, we will print the value of the pointer to the standard output instead of the string `"Foo"`:
22+
In the following code snippet, we print the value of the pointer to the standard output instead of the string `"Foo"`:
2323

2424
```cpp
2525
#include <iostream>
@@ -29,7 +29,7 @@ int main() {
2929
}
3030
```
3131

32-
There are multiple ways to fix this error. If printing the pointer value is unintended, we can use a non-wide string literal:
32+
There are multiple ways to fix this error. If printing the pointer value is unintended, we can use a nonwide string literal:
3333

3434
```cpp
3535
#include <iostream>

0 commit comments

Comments
 (0)