Skip to content

Commit 1c87882

Browse files
TylerMSFTTylerMSFT
authored andcommitted
couple formatting things before PR reviewers get it
1 parent 6fec72c commit 1c87882

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/c-language/static-assert-c.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ The **`_Static_assert`** keyword, and the **`static_assert`** macro, both test a
3434
3535
In contrast, the [assert macro and _assert and _wassert functions](../c-runtime-library/reference/assert-macro-assert-wassert.md) test a software assertion at runtime and incur a runtime cost.
3636
37-
**Microsoft-specific behavior**\
37+
**Microsoft-specific behavior**
3838
39-
In C, when you don't include <assert.h>, the Microsoft Visual C/C++ compiler treats **`static_assert`** as a keyword that maps to **`_Static_assert`**. Using the **`static_assert`** macro is preferred because the same code will work in both C and C++.
39+
In C, when you don't include `<assert.h>`, the Microsoft Visual C/C++ compiler treats **`static_assert`** as a keyword that maps to **`_Static_assert`**. Using **`static_assert`** is preferred because the same code will work in both C and C++.
4040
4141
## Example of a compile-time assert
4242
@@ -56,7 +56,6 @@ enum Items
5656
5757
int main()
5858
{
59-
6059
// _Static_assert is a C11 keyword
6160
_Static_assert(LENGTH == 3, "Expected Items enum to have three elements");
6261

0 commit comments

Comments
 (0)