From 665e11649c8736d4680cba39a605f8ccaf941f58 Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Tue, 10 Sep 2024 08:11:53 -0700 Subject: [PATCH] Fix typo Co-authored-by: Jared Parsons --- docs/CollectionBestPractices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CollectionBestPractices.md b/docs/CollectionBestPractices.md index f44d364c3f..921dc85dc4 100644 --- a/docs/CollectionBestPractices.md +++ b/docs/CollectionBestPractices.md @@ -53,7 +53,7 @@ > **Be mindful of ToArray()** > > Calling `ToArray()` on a collection will create a new array and copy content from the collection into it. So, when -> the exact capacity is known up front, it is an anti-pattern to create a `List` withwout that capacity, fill it +> the exact capacity is known up front, it is an anti-pattern to create a `List` without that capacity, fill it > with items and then call `ToArray()` at the end. This results in extra allocations that could be avoided by creating > an array and filling it.