We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 844b414 commit 2c55fb2Copy full SHA for 2c55fb2
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Speller.cs
@@ -186,7 +186,7 @@ internal List<string> GetSuggestionsForError(SpellingError error)
186
// calculate the exact same error. Keep the two methods in sync!
187
//
188
189
- List<string> suggestions = new();
+ List<string> suggestions = new(4);
190
CultureInfo culture = GetCurrentCultureAndLanguage(error.Start, out XmlLanguage language);
191
192
if (culture is not null || _spellerInterop.CanSpellCheck(culture))
0 commit comments