Skip to content

Commit

Permalink
Remove incorrect exception comment from AsSpan (#66051)
Browse files Browse the repository at this point in the history
This method never throws an `ArgumentNullException` for a null `text` input, and is even annotated as accepting `string?`.
  • Loading branch information
333fred committed Mar 2, 2022
1 parent 96d7d90 commit 1ad0540
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public static ReadOnlySpan<char> AsSpan(this string? text)
/// </summary>
/// <param name="text">The target string.</param>
/// <param name="start">The index at which to begin this slice.</param>
/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="text"/> is null.</exception>
/// <exception cref="System.ArgumentOutOfRangeException">
/// Thrown when the specified <paramref name="start"/> index is not in range (&lt;0 or &gt;text.Length).
/// </exception>
Expand Down

0 comments on commit 1ad0540

Please sign in to comment.