diff --git a/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs b/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs index 35b69944f883cc..df5427cd075dc4 100644 --- a/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs +++ b/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs @@ -3794,7 +3794,7 @@ public static int Count(ref T current, T value, int length) where T : IEquata return count; } - public static unsafe int CountValueType(ref T current, T value, int length) where T : struct, IEquatable? + public static unsafe int CountValueType(ref T current, T value, int length) where T : struct, IEquatable { int count = 0; ref T end = ref Unsafe.Add(ref current, length);