From b87592df268f7fe002f4ed1aae2198811c83c9ea Mon Sep 17 00:00:00 2001 From: Mikkel Nylander Bundgaard Date: Fri, 23 Nov 2018 16:46:59 +0100 Subject: [PATCH] Update when.md Fixes #9094 --- docs/csharp/language-reference/keywords/when.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/keywords/when.md b/docs/csharp/language-reference/keywords/when.md index 4de4d4539ada2..063e8a8f5c29f 100644 --- a/docs/csharp/language-reference/keywords/when.md +++ b/docs/csharp/language-reference/keywords/when.md @@ -20,7 +20,7 @@ You can use the `when` contextual keyword to specify a filter condition in two c Starting with C# 6, `when` can be used in a `catch` statement to specify a condition that must be true for the handler for a specific exception to execute. Its syntax is: ```csharp -catch ExceptionType [e] when (expr) +catch (ExceptionType [e]) when (expr) ``` where *expr* is an expression that evaluates to a Boolean value. If it returns `true`, the exception handler executes; if `false`, it does not.