Skip to content

Commit 7e63a88

Browse files
Update src/Analyzers/CSharp/Analyzers/UseCollectionExpression/CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs
Co-authored-by: Joey Robichaud <[email protected]>
1 parent 0453341 commit 7e63a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyzers/CSharp/Analyzers/UseCollectionExpression/CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private void AnalyzeBaseObjectCreationExpression(
7373
return;
7474
}
7575

76-
// Because we want to replacing a `new X(enumerable)` with `[.. enumerable]` we need to make sure that the final
76+
// Because we want to replace `new X(enumerable)` with `[.. enumerable]` we need to make sure that the final
7777
// type supports the collection initialization pattern (specifically that it exposes an Add method that takes
7878
// the element type). This prevents us from working on certain types that do allow the former form but not the
7979
// latter.

0 commit comments

Comments
 (0)