Skip to content

Commit ebb4ec7

Browse files
authored
Update Leap Approaches overview (#2208)
This makes the article more readable in the UI.
1 parent a1523c1 commit ebb4ec7

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

exercises/practice/leap/.approaches/introduction.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,11 @@ For more information, check the [`switch` on a `tuple` approach][approach-switch
5151

5252
## Other approaches
5353

54-
Besides the aforementioned, idiomatic approaches, you could also approach the exercise as follows:
55-
56-
## DateTime.Add approach:
57-
58-
Add a day to February 28th for the year and see if the new day is the 29th. For more information, see the [`DateTime.Add` approach][approach-datetime-add].
59-
60-
## Built-in method approach:
61-
62-
Use the built-in method for the year. For more information, see the [`DateTime.IsLeapYear` approach][approach-datetime-isleapyear].
54+
Besides the aforementioned, idiomatic approaches, you could also solve the exercise by:
55+
- Adding a day to February 28th seeing if the new day is the 29th.
56+
For more information, see the [`DateTime.Add` approach][approach-datetime-add].
57+
- Using the built-in method for the year.
58+
For more information, see the [`DateTime.IsLeapYear` approach][approach-datetime-isleapyear].
6359

6460
## Which approach to use?
6561

0 commit comments

Comments
 (0)