Skip to content

Commit b42b573

Browse files
committed
Formatting
1 parent e7f7a42 commit b42b573

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shared/Microsoft.Extensions.Buffers.MemoryPool.Sources/MemoryPoolThrowHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ private static string GenerateMessage(string message, params DiagnosticPoolBlock
7474
{
7575
if (diagnosticPoolBlock.Leaser != null)
7676
{
77+
builder.AppendLine();
78+
7779
builder.AppendLine("Block leased from:");
7880
builder.AppendLine(diagnosticPoolBlock.Leaser.ToString());
79-
80-
builder.AppendLine();
8181
}
8282
}
8383

test/Microsoft.Extensions.Internal.Test/DiagnosticMemoryPoolTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void DoubleBlockDisposeThrows()
4040
var block = memoryPool.Rent();
4141
block.Dispose();
4242
var exception = Assert.Throws<InvalidOperationException>(() => block.Dispose());
43-
Assert.Equal("Object is being disposed twice", exception.Message);
43+
Assert.Equal("Block is being disposed twice", exception.Message);
4444

4545
ExpectDisposeAggregateException(memoryPool, exception);
4646
}

0 commit comments

Comments
 (0)