Skip to content

Commit ef7524d

Browse files
committed
Explicit variable type
1 parent 393ddb5 commit ef7524d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Text.Json/Common/JsonSeparatorNamingPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public sealed override string ConvertName(string name)
2929

3030
void ExpandBuffer(ref Span<char> result)
3131
{
32-
var bufferNew = ArrayPool<char>.Shared.Rent(bufferLength *= 2);
32+
char[] bufferNew = ArrayPool<char>.Shared.Rent(result.Length * 2);
3333

3434
result.CopyTo(bufferNew);
3535

0 commit comments

Comments
 (0)