Skip to content

Commit

Permalink
Fix argument assertion message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrnikitin committed Jan 23, 2018
1 parent 5a9584d commit 1e83a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MPMCQueue.NET/MPMCQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MPMCQueue

public MPMCQueue(int bufferSize)
{
if (bufferSize < 2) throw new ArgumentException($"{nameof(bufferSize)} should be greater than 2");
if (bufferSize < 2) throw new ArgumentException($"{nameof(bufferSize)} should be greater than or equal to 2");
if ((bufferSize & (bufferSize - 1)) != 0) throw new ArgumentException($"{nameof(bufferSize)} should be a power of 2");

_bufferMask = bufferSize - 1;
Expand Down

0 comments on commit 1e83a5b

Please sign in to comment.