diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Globalization/DateTimeParse.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Globalization/DateTimeParse.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Globalization/DateTimeParse.cs b/src/System.Private.CoreLib/shared/System/Globalization/DateTimeParse.cs index fd64c6d11..bf86e0cfd 100644 --- a/src/System.Private.CoreLib/shared/System/Globalization/DateTimeParse.cs +++ b/src/System.Private.CoreLib/shared/System/Globalization/DateTimeParse.cs @@ -5296,7 +5296,7 @@ new DS[] { DS.ERROR, DS.TX_NNN, DS.TX_NNN, DS.TX_NNN, DS.ERROR, DS.ERROR, Span<char> result = new char[i + 1]; result[i] = ch; Value.Slice(0, i).CopyTo(result); - Value = result.AsReadOnlySpan(); + Value = result; } } } @@ -5323,7 +5323,7 @@ new DS[] { DS.ERROR, DS.TX_NNN, DS.TX_NNN, DS.TX_NNN, DS.ERROR, DS.ERROR, Span<char> result = new char[Value.Length - i]; result[0] = ch; Value.Slice(i + 1).CopyTo(result.Slice(1)); - Value = result.AsReadOnlySpan(); + Value = result; } } } |