Skip to content

Commit

Permalink
Cleanup reader correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Feb 25, 2024
1 parent c09d760 commit 02e1b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotNext.Tests/IO/StreamSegmentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void AdjustSetsSegmentOfStream(int offset, int length, string expe
using var ms = new MemoryStream(Encoding.UTF8.GetBytes("This is a test"));
using var segment = new StreamSegment(ms);
segment.Adjust(offset, length);
StreamReader reader = new(segment);
using StreamReader reader = new(segment);
Equal(expected, reader.ReadToEnd());
}

Expand Down

0 comments on commit 02e1b03

Please sign in to comment.