Skip to content

Commit 1bc5416

Browse files
Fix comment about complexity ImmutableArray`1.ToBuilder method (#4273)
The operation is O(n) instead of O(1), because it copies all the elements to the builder.
1 parent da15915 commit 1bc5416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Collections.Immutable/ImmutableArray`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3728,7 +3728,7 @@ This member is an explicit interface member implementation. It can be used only
37283728
<format type="text/markdown"><![CDATA[
37293729
37303730
## Remarks
3731-
This is an O(1) operation and results in only a single (small) memory allocation. The mutable list that is returned is not thread-safe.
3731+
This is an O(n) operation and copies all the elements of the immutable array into the Builder. The mutable list that is returned is not thread-safe.
37323732
37333733
]]></format>
37343734
</remarks>

0 commit comments

Comments
 (0)