Skip to content

Commit 468db70

Browse files
committed
Address review comments.
1 parent 4d3cefc commit 468db70

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,7 +13,7 @@ This rule was added in Visual Studio 2022 17.8.
1313

1414
## Remarks
1515

16-
C++ supports wide character streams such as `std::wostringstream`, and nonwide character streams such as `std::ostringstream`. Trying to print a wide string literal to a nonwide stream calls the `void*` overload of `operator<<`. This overload prints the address of the wide string literal instead of the value.
16+
C++ supports wide character streams such as `std::wostringstream`, and nonwide character streams such as `std::ostringstream`. Trying to print a wide string to a nonwide stream calls the `void*` overload of `operator<<`. This overload prints the address of the wide string instead of the value.
1717

1818
Code analysis name: `STREAM_OUTPUT_VOID_PTR`
1919

@@ -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, use a nonwide string literal:
32+
There are multiple ways to fix this error. If printing the pointer value is unintended, use a nonwide string:
3333

3434
```cpp
3535
#include <iostream>
@@ -49,7 +49,7 @@ int main() {
4949
}
5050
```
5151

52-
If the behavior is intentional, silence the warning by using an explicit cast:
52+
If the behavior is intentional, make the intention explicit and silence the warning by using an explicit cast:
5353

5454
```cpp
5555
#include <iostream>

0 commit comments

Comments
 (0)