Skip to content

Commit 1c9e9b6

Browse files
refactor: improve readability of WaterState method (#45855)
1 parent a1eb72b commit 1c9e9b6

File tree

1 file changed

+2
-2
lines changed
  • docs/csharp/fundamentals/functional/snippets/patterns

1 file changed

+2
-2
lines changed

docs/csharp/fundamentals/functional/snippets/patterns/Simulation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ public State PerformOperation(ReadOnlySpan<char> command) =>
5757
string WaterState(int tempInFahrenheit) =>
5858
tempInFahrenheit switch
5959
{
60-
(> 32) and (< 212) => "liquid",
6160
< 32 => "solid",
62-
> 212 => "gas",
6361
32 => "solid/liquid transition",
62+
(> 32) and (< 212) => "liquid",
6463
212 => "liquid / gas transition",
64+
> 212 => "gas",
6565
};
6666
// </RelationalPattern>
6767

0 commit comments

Comments
 (0)