Skip to content

Commit fde77a8

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent 3650304 commit fde77a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataStructures/BitArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public sealed class BitArray : ICloneable, IEnumerator<bool>, IEnumerable<bool>
139139
/// <param name="n">length of the array.</param>
140140
public BitArray(int n)
141141
{
142-
field = n < 1 ? new bool[0] : new bool[n];
142+
field = n <= 0 ? new bool[0] : new bool[n];
143143
}
144144

145145
/// <summary>

0 commit comments

Comments
 (0)