Skip to content

Commit 3c5600f

Browse files
committed
Use correct parameter ordering
1 parent e00c573 commit 3c5600f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ All notable changes to **ValueStringBuilder** will be documented in this file. T
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- Slight improvements for `IndexOf` methods
12+
13+
### Fixed
14+
15+
- Some of the exception had the wrong order (message and parameter name)
16+
917
## [1.6.1] - 2022-11-11
1018

1119
### Added
1220

13-
- Added `net7.0` target
21+
- Added `net7.0` target
1422

1523
### Changed
1624

src/LinkDotNet.StringBuilder/ValueStringBuilder.Replace.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void Replace(char oldValue, char newValue, int startIndex, int count)
2929

3030
if (count > bufferPosition)
3131
{
32-
throw new ArgumentOutOfRangeException($"Count: {count} is bigger than the current size {bufferPosition}.", nameof(count));
32+
throw new ArgumentOutOfRangeException(nameof(count), $"Count: {count} is bigger than the current size {bufferPosition}.");
3333
}
3434

3535
for (var i = startIndex; i < startIndex + count; i++)

0 commit comments

Comments
 (0)