Skip to content

Commit 02750a4

Browse files
xtqqczzeAaronRobinsonMSFTeiriktsarpalis
authored
Remove redundant nullable annotation (#113550)
The nullable annotation on type constraint 'IEquatable<T>?' is redundant because type parameter 'T' has 'struct' constraint. Co-authored-by: Aaron Robinson <[email protected]> Co-authored-by: Eirik Tsarpalis <[email protected]>
1 parent e4d6152 commit 02750a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3794,7 +3794,7 @@ public static int Count<T>(ref T current, T value, int length) where T : IEquata
37943794
return count;
37953795
}
37963796

3797-
public static unsafe int CountValueType<T>(ref T current, T value, int length) where T : struct, IEquatable<T>?
3797+
public static unsafe int CountValueType<T>(ref T current, T value, int length) where T : struct, IEquatable<T>
37983798
{
37993799
int count = 0;
38003800
ref T end = ref Unsafe.Add(ref current, length);

0 commit comments

Comments
 (0)