Skip to content

Commit 8112323

Browse files
authored
Compact unordered list and use colons in C4789 warning reference
1 parent dff18dd commit 8112323

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4789.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ ms.assetid: 5800c301-5afb-4af0-85c1-ceb54d775234
1919
The warning occurs if the copy uses the intrinsic form of one of these CRT functions:
2020

2121
- [`strcpy`](../../c-runtime-library/reference/strcpy-wcscpy-mbscpy.md)
22-
2322
- [`memset`](../../c-runtime-library/reference/memset-wmemset.md)
24-
2523
- [`memcpy`](../../c-runtime-library/reference/memcpy-wmemcpy.md), [`wmemcpy`](../../c-runtime-library/reference/memcpy-wmemcpy.md)
2624

2725
The warning also appears when you cast a parameter to a larger data type, and then make a copy assignment from an lvalue reference.
@@ -41,7 +39,7 @@ The [`/sdl` (Enable Additional Security Checks)](../../build/reference/sdl-enabl
4139

4240
## Examples
4341

44-
The following sample generates C4789.
42+
The following sample generates C4789:
4543

4644
```cpp
4745
// C4789.cpp
@@ -63,7 +61,7 @@ int main()
6361
}
6462
```
6563

66-
The following sample also generates C4789.
64+
The following sample also generates C4789:
6765

6866
```cpp
6967
// C4789b.cpp

0 commit comments

Comments
 (0)