Skip to content

Commit ebea731

Browse files
committed
Apply suggestion.
1 parent ce8f0a8 commit ebea731

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/code-quality/c26859.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ helpviewer_keywords: ["C26859"]
1111
1212
## Remarks
1313

14-
Unwrapping empty `std::optional` values via the `value` method will throw an exception. Such operation can result in a crash when the exception is not handled. This check will attempt to find cases where a `std::optional` is known to be empty and unwrapped using the `value` method. You can also enable [C26829](../code-quality/c26829.md), [C26830](../code-quality/c26830.md), and [C26860](../code-quality/c26860.md) for a stricter analysis.
14+
Unwrapping empty `std::optional` values via the `value` method will throw an exception. Such operation can result in a crash when the exception isn't handled. This check will attempt to find cases where a `std::optional` is known to be empty and unwrapped using the `value` method. You can also enable [C26829](../code-quality/c26829.md), [C26830](../code-quality/c26830.md), and [C26860](../code-quality/c26860.md) for a stricter analysis.
1515

1616
## Example
1717

docs/code-quality/c26860.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ helpviewer_keywords: ["C26860"]
1111
1212
## Remarks
1313

14-
Unwrapping empty `std::optional` values via the `value` method will throw an exception. Such operation can result in a crash when the exception is not handled. This check will attempt to find cases where a `std::optional` isn't checked for emptiness before unwrapping it via the `value` method. You can enable [C26829](../code-quality/c26829.md), and [C26859](../code-quality/c26859.md) only for a more permissive analysis.
14+
Unwrapping empty `std::optional` values via the `value` method will throw an exception. Such operation can result in a crash when the exception isn't handled. This check will attempt to find cases where a `std::optional` isn't checked for emptiness before unwrapping it via the `value` method. You can enable [C26829](../code-quality/c26829.md), and [C26859](../code-quality/c26859.md) only for a more permissive analysis.
1515

1616
## Example
1717

0 commit comments

Comments
 (0)