From 728bca1184348a7273d26bb39f3af1c0e6e764d3 Mon Sep 17 00:00:00 2001 From: Jeremy Walker Date: Thu, 4 Jan 2024 12:31:11 +0000 Subject: [PATCH] Update Leap Approaches overview This makes the article more readable in the UI. --- .../practice/leap/.approaches/introduction.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/exercises/practice/leap/.approaches/introduction.md b/exercises/practice/leap/.approaches/introduction.md index 646c442832..78e32c018e 100644 --- a/exercises/practice/leap/.approaches/introduction.md +++ b/exercises/practice/leap/.approaches/introduction.md @@ -51,15 +51,11 @@ For more information, check the [`switch` on a `tuple` approach][approach-switch ## Other approaches -Besides the aforementioned, idiomatic approaches, you could also approach the exercise as follows: - -## DateTime.Add approach: - -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]. - -## Built-in method approach: - -Use the built-in method for the year. For more information, see the [`DateTime.IsLeapYear` approach][approach-datetime-isleapyear]. +Besides the aforementioned, idiomatic approaches, you could also solve the exercise by: +- Adding a day to February 28th seeing if the new day is the 29th. + For more information, see the [`DateTime.Add` approach][approach-datetime-add]. +- Using the built-in method for the year. + For more information, see the [`DateTime.IsLeapYear` approach][approach-datetime-isleapyear]. ## Which approach to use?