Skip to content

Commit 4831a1e

Browse files
Bump and fix Meziantou.Analyzer from 2.0.239 to 2.0.267 (#267)
1 parent 9c980c6 commit 4831a1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</PropertyGroup>
4343

4444
<ItemGroup>
45-
<PackageReference Include="Meziantou.Analyzer" Version="2.0.239">
45+
<PackageReference Include="Meziantou.Analyzer" Version="2.0.267">
4646
<PrivateAssets>all</PrivateAssets>
4747
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4848
</PackageReference>

src/LinkDotNet.StringBuilder/ValueStringBuilder.Replace.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public ref partial struct ValueStringBuilder
2424
public readonly void Replace(char oldValue, char newValue, int startIndex, int count)
2525
{
2626
ArgumentOutOfRangeException.ThrowIfLessThan(startIndex, 0);
27-
ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + count, Length);
27+
ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + count, Length, nameof(count));
2828

2929
buffer.Slice(startIndex, count).Replace(oldValue, newValue);
3030
}
@@ -84,7 +84,7 @@ public void Replace(scoped ReadOnlySpan<char> oldValue, scoped ReadOnlySpan<char
8484
public void Replace(scoped ReadOnlySpan<char> oldValue, scoped ReadOnlySpan<char> newValue, int startIndex, int count)
8585
{
8686
ArgumentOutOfRangeException.ThrowIfLessThan(startIndex, 0);
87-
ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + count, Length);
87+
ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + count, Length, nameof(count));
8888

8989
if (oldValue.IsEmpty || oldValue.Equals(newValue, StringComparison.Ordinal))
9090
{

src/LinkDotNet.StringBuilder/ValueStringBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public void Remove(int startIndex, int length)
244244
{
245245
ArgumentOutOfRangeException.ThrowIfLessThan(length, 0);
246246
ArgumentOutOfRangeException.ThrowIfLessThan(startIndex, 0);
247-
ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + length, Length);
247+
ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + length, Length, nameof(length));
248248

249249
if (length == 0)
250250
{

0 commit comments

Comments
 (0)