Skip to content

Commit aa7d825

Browse files
committed
last preps.
2 parents e152549 + 99d8486 commit aa7d825

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

Changelog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
- moved MemoryExtensions containing range-based Split method for versions prior to .Net 9 from `System` to `SpanExtensions`.
2929
- grammatical issues in some documentation comments.
3030

31+
## [1.5.1] - 2024-12-14
32+
33+
### Fixed
34+
35+
- incorrect ranges returned by the range-based Split method for versions prior to .Net 9.
36+
37+
### Changed
38+
39+
- moved MemoryExtensions containing range-based Split method for versions prior to .Net 9 from `System` to `SpanExtensions`.
40+
- grammatical issues in some documentation comments.
41+
3142
## [1.5] - 2024-11-12
3243

3344
### Added

src/Enumerators/System/SpanSplitEnumerator.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,17 @@ public bool MoveNext()
116116
}
117117

118118
currentStartIndex = nextStartIndex;
119-
119+
120120
if(index < 0)
121121
{
122122
currentEndIndex = Span.Length;
123123
nextStartIndex = Span.Length;
124-
125124
mode = (SpanSplitEnumeratorMode)(-1);
126125
return true;
127126
}
128127

129128
currentEndIndex = currentStartIndex + index;
130129
nextStartIndex = currentEndIndex + length;
131-
132130
return true;
133131
}
134132
}

src/SpanExtensions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<Company>draconware</Company>
1212
<Description>
1313
Never again switch back to using string instead of ReadonlySpan&lt;T&gt;, just because the method you seek is not supported.
14-
15-
SpanExtensions.Net aims to help developers use ReadonlySpan&lt;T&gt; and Span&lt;T&gt; more productively, efficiently and safely and write overall more performant Programs.
14+
15+
SpanExtensions.Net aims to help developers use ReadonlySpan&lt;T&gt; and Span&lt;T&gt; more productively, efficiently and safely and write overall more performant Programs.
1616
</Description>
1717
<RepositoryUrl>https://github.com/draconware-dev/SpanExtensions.Net</RepositoryUrl>
1818
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>

tests/Performance/PerformanceTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<IsPackable>false</IsPackable>

0 commit comments

Comments
 (0)