Skip to content

Commit ac939e8

Browse files
Update Source.ZLinq/Extensions.StringSegment.NoAlloc.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0ce5929 commit ac939e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source.ZLinq/Extensions.StringSegment.NoAlloc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static ValueEnumerable<StringSegmentSplitEnumerator, StringSegment> Split
2828
StringSplitOptions options = StringSplitOptions.None)
2929
=> source.HasValue
3030
? new(new StringSegmentSplitEnumerator(source, splitCharacter, options))
31-
: throw new ArgumentNullException(nameof(source), "Must be a StringSegment that has a value (is not null).");
31+
: throw new ArgumentNullException(nameof(source), MustBeSegmentWithValue);
3232

3333
/// <summary>
3434
/// Enumerates a string by segments that are separated by the regular expression matches.

0 commit comments

Comments
 (0)