Skip to content

Commit 4295148

Browse files
committed
Update DateScrubber.cs
1 parent 86973c9 commit 4295148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Verify/Serialization/Scrubbers/DateScrubber.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static void ReplaceInner(StringBuilder builder, string format, Counter counter,
223223
continue;
224224
}
225225

226-
var slice = content.Slice(0, length);
226+
var slice = content[..length];
227227

228228
if (context.TryConvert(slice, context.Format, context.Counter, context.Culture, out var converted))
229229
{

0 commit comments

Comments
 (0)