未验证 提交 1ad05402 编写于 作者: F Fred Silberberg 提交者: GitHub

Remove incorrect exception comment from AsSpan (#66051)

This method never throws an `ArgumentNullException` for a null `text` input, and is even annotated as accepting `string?`.
上级 96d7d903
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册