Skip to content

Commit 4907ffd

Browse files
timcassellCorniel
andauthored
Update src/BenchmarkDotNet/Engines/Engine.cs
Co-authored-by: Corniel Nobel <[email protected]>
1 parent 2c135d2 commit 4907ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarkDotNet/Engines/Engine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public Measurement RunIteration(IterationData data)
326326
long invokeCount = data.InvokeCount;
327327
int unrollFactor = data.UnrollFactor;
328328
if (invokeCount % unrollFactor != 0)
329-
throw new ArgumentOutOfRangeException($"InvokeCount({invokeCount}) should be a multiple of UnrollFactor({unrollFactor}).");
329+
throw new ArgumentOutOfRangeException(nameof(data), $"InvokeCount({invokeCount}) should be a multiple of UnrollFactor({unrollFactor}).");
330330

331331
long totalOperations = invokeCount * OperationsPerInvoke;
332332
bool isOverhead = data.IterationMode == IterationMode.Overhead;

0 commit comments

Comments
 (0)