chore: format corrections
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
namespace CS11 {
|
||||
// ReSharper disable All
|
||||
|
||||
namespace CS11 {
|
||||
class Program {
|
||||
static void Main(string[] args) {
|
||||
int[] numbers = { 1, 3, 42 };
|
||||
@@ -40,10 +42,9 @@
|
||||
}
|
||||
|
||||
// Now we're talking
|
||||
static int Sum(int[] l) => l switch
|
||||
{
|
||||
static int Sum(int[] l) => l switch {
|
||||
[] => 0,
|
||||
[var x, .. var xs] => x + Sum(xs)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user