Skip to content

Commit 1153c07

Browse files
committed
Return "proper" type
1 parent ba3e7a2 commit 1153c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LinkDotNet.StringBuilder/NaiveSearch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ public static ReadOnlySpan<int> FindAll(ReadOnlySpan<char> text, ReadOnlySpan<ch
1212
{
1313
if (text.IsEmpty || word.IsEmpty)
1414
{
15-
return Array.Empty<int>();
15+
return ReadOnlySpan<int>.Empty;
1616
}
1717

1818
if (text.Length < word.Length)
1919
{
20-
return Array.Empty<int>();
20+
return ReadOnlySpan<int>.Empty;
2121
}
2222

2323
var hits = new TypedSpanList<int>();

0 commit comments

Comments
 (0)