Skip to content

Commit 0cb66e0

Browse files
committed
Fix braces for code example in CA1864 rule
1 parent fd348a8 commit 0cb66e0

File tree

1 file changed

+2
-1
lines changed
  • docs/fundamentals/code-analysis/quality-rules

1 file changed

+2
-1
lines changed

docs/fundamentals/code-analysis/quality-rules/ca1864.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ The following code snippet shows a violation of CA1864:
4141
```csharp
4242
void Run(IDictionary<int, string> dictionary)
4343
{
44-
if(!dictionary.ContainsKey(2)) {
44+
if (!dictionary.ContainsKey(2))
45+
{
4546
dictionary.Add(2, "Hello World");
4647
}
4748
}

0 commit comments

Comments
 (0)