We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ExceptionArgument
System.IO.Pipelines
1 parent 5aa4945 commit d9d7b6aCopy full SHA for d9d7b6a
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs
@@ -132,7 +132,7 @@ internal Memory<byte> GetMemory(int sizeHint)
132
133
if (sizeHint < 0)
134
{
135
- ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.minimumSize);
+ ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.sizeHint);
136
}
137
138
AllocateWriteHeadIfNeeded(sizeHint);
@@ -149,7 +149,7 @@ internal Span<byte> GetSpan(int sizeHint)
149
150
151
152
153
154
155
0 commit comments