diff options
author | Marek Safar <marek.safar@gmail.com> | 2018-03-02 12:41:04 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-03-02 12:41:04 +0300 |
commit | 751b91ba5ed72c4506051d3d5bfcdd226020179b (patch) | |
tree | 9ae1bd139b32d3c7d190d77f81cdfacd297edbd1 /src/System.Private.CoreLib/shared/System/Version.cs | |
parent | 71513aa41e97ba935f183d9b3eb275b1e6a5659a (diff) | |
parent | 5ae871ca2298c8caaf8966204360f5b67c5404bb (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Version.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Version.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Version.cs b/src/System.Private.CoreLib/shared/System/Version.cs index df16be2cd..9e4cefcd6 100644 --- a/src/System.Private.CoreLib/shared/System/Version.cs +++ b/src/System.Private.CoreLib/shared/System/Version.cs @@ -300,7 +300,7 @@ namespace System throw new ArgumentNullException(nameof(input)); } - return ParseVersion(input.AsReadOnlySpan(), throwOnFailure: true); + return ParseVersion(input.AsSpan(), throwOnFailure: true); } public static Version Parse(ReadOnlySpan<char> input) => @@ -314,7 +314,7 @@ namespace System return false; } - return (result = ParseVersion(input.AsReadOnlySpan(), throwOnFailure: false)) != null; + return (result = ParseVersion(input.AsSpan(), throwOnFailure: false)) != null; } public static bool TryParse(ReadOnlySpan<char> input, out Version result) => |