diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone/switch-missing-default-case.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone/switch-missing-default-case.rst index 648c2c208a4ec..3ce862ff8afcc 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone/switch-missing-default-case.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone/switch-missing-default-case.rst @@ -9,8 +9,8 @@ on covering cases with non-enums where the compiler may not issue warnings. Switch statements without a default case can lead to unexpected behavior and incomplete handling of all possible cases. When a switch statement lacks a default case, if a value is encountered that does not match any of the -specified cases, the program will continue execution without any defined -behavior or handling. +specified cases, the switch statement will do nothing and the program will +continue execution without handling the value. This check helps identify switch statements that are missing a default case, allowing developers to ensure that all possible cases are handled properly.