Skip to content

Commit c5d6413

Browse files
authored
Lightly format syntax in <limits> enums reference
1 parent 0ba2e72 commit c5d6413

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/standard-library/limits-enums.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ The `<limits>` header provides the following enums:
1414
The enumeration describes the various methods that an implementation can choose for representing a denormalized floating-point value — one too small to represent as a normalized value:
1515

1616
```cpp
17-
enum float_denorm_style {
17+
enum float_denorm_style
18+
{
1819
denorm_indeterminate = -1,
1920
denorm_absent = 0,
20-
denorm_present = 1 };
21+
denorm_present = 1
22+
};
2123
```
2224

2325
### Return Value
@@ -39,12 +41,14 @@ See [`numeric_limits::has_denorm`](../standard-library/numeric-limits-class.md#h
3941
The enumeration describes the various methods that an implementation can choose for rounding a floating-point value to an integer value.
4042

4143
```cpp
42-
enum float_round_style {
44+
enum float_round_style
45+
{
4346
round_indeterminate = -1,
4447
round_toward_zero = 0,
4548
round_to_nearest = 1,
4649
round_toward_infinity = 2,
47-
round_toward_neg_infinity = 3 };
50+
round_toward_neg_infinity = 3
51+
};
4852
```
4953

5054
### Return Value

0 commit comments

Comments
 (0)