From 1ad054025d7aa1becfe165917fd91b3201b45cdc Mon Sep 17 00:00:00 2001 From: Fred Silberberg Date: Tue, 1 Mar 2022 19:05:12 -0800 Subject: [PATCH] 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?`. --- .../System.Private.CoreLib/src/System/MemoryExtensions.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs b/src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs index b87c35199a7d5..b94aa277005e6 100644 --- a/src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs +++ b/src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs @@ -101,7 +101,6 @@ public static ReadOnlySpan AsSpan(this string? text) /// /// The target string. /// The index at which to begin this slice. - /// Thrown when is null. /// /// Thrown when the specified index is not in range (<0 or >text.Length). ///