Skip to content

Commit 66ff9a8

Browse files
committed
undo
1 parent e784b7b commit 66ff9a8

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/Extensions/ReadOnlySpan/ReadOnlySpanExtensions.Linq.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ public static T Sum<T>(this ReadOnlySpan<T> source) where T : INumber<T>
6565
}
6666
return number;
6767
}
68-
#else
69-
#if NET5_0_OR_GREATER
68+
#else #if NET5_0_OR_GREATER
7069

7170
/// <summary>
7271
/// Computes the Sum of all the elements in <paramref name="source"/>.
@@ -83,7 +82,7 @@ public static Half Sum(this ReadOnlySpan<Half> source)
8382
}
8483
return (Half)number;
8584
}
86-
#endif
85+
#endif
8786

8887
/// <summary>
8988
/// Computes the Sum of all the elements in <paramref name="source"/>.
@@ -402,7 +401,7 @@ public static T Average<T>(this ReadOnlySpan<T> source) where T : INumber<T>
402401
}
403402
#else
404403

405-
#if NET5_0_OR_GREATER
404+
#if NET5_0_OR_GREATER
406405

407406
/// <summary>
408407
/// Computes the Average of all the values in <paramref name="source"/>.
@@ -415,7 +414,7 @@ public static Half Average(this ReadOnlySpan<Half> source)
415414
Half sum = source.Sum();
416415
return (Half)((float)sum / source.Length);
417416
}
418-
#endif
417+
#endif
419418
/// <summary>
420419
/// Computes the Average of all the values in <paramref name="source"/>.
421420
/// </summary>
@@ -585,7 +584,7 @@ public static T Min<T>(this ReadOnlySpan<T> source) where T : INumber<T>
585584
}
586585
#else
587586

588-
#if NET5_0_OR_GREATER
587+
#if NET5_0_OR_GREATER
589588

590589
/// <summary>
591590
/// Computes the Min of all the values in <paramref name="source"/>.
@@ -606,7 +605,7 @@ public static Half Min(this ReadOnlySpan<Half> source)
606605
}
607606
return min;
608607
}
609-
#endif
608+
#endif
610609
/// <summary>
611610
/// Computes the Min of all the values in <paramref name="source"/>.
612611
/// </summary>
@@ -872,7 +871,7 @@ public static T Max<T>(this ReadOnlySpan<T> source) where T : INumber<T>
872871
}
873872
#else
874873

875-
#if NET5_0_OR_GREATER
874+
#if NET5_0_OR_GREATER
876875

877876
/// <summary>
878877
/// Computes the Max of all the values in <paramref name="source"/>.
@@ -893,7 +892,8 @@ public static Half Max(this ReadOnlySpan<Half> source)
893892
}
894893
return max;
895894
}
896-
#endif
895+
#endif
896+
897897
/// <summary>
898898
/// Computes the Max of all the values in <paramref name="source"/>.
899899
/// </summary>
@@ -1134,5 +1134,6 @@ public static BigInteger Max(this ReadOnlySpan<BigInteger> source)
11341134
return max;
11351135
}
11361136
#endif
1137+
11371138
}
11381139
}

0 commit comments

Comments
 (0)