From ad23781b3bf7560b999c4094879e396b62130897 Mon Sep 17 00:00:00 2001 From: Hamza elkhatri <40549481+Hamzaelkhatri@users.noreply.github.com> Date: Mon, 13 Jun 2022 11:43:07 +0100 Subject: [PATCH] Update README.md --- subjects/leapyear/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subjects/leapyear/README.md b/subjects/leapyear/README.md index fbbd26d9..36de2e71 100644 --- a/subjects/leapyear/README.md +++ b/subjects/leapyear/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a function named `isLeap(int)` that takes a year as a parameter and returns true if the year is a leap year and false otherwise. +Write a function named `LeapYear(int)` that takes a year as a parameter and returns true if the year is a leap year and false otherwise. - A leap year is a year divisible by 4, but not by 100. - A leap year is also divisible by 400. - If the number is not positive, return false @@ -10,7 +10,7 @@ Write a function named `isLeap(int)` that takes a year as a parameter and return ### Expected function ```go -func isLeap(year int)bool{ +func LeapYear(year int)bool{ // your code here } ``` @@ -22,10 +22,10 @@ package main import "fmt" func main(){ - fmt.Println(isLeap(2020)) - fmt.Println(isLeap(2021)) - fmt.Println(isLeap(2022)) - fmt.Println(isLeap(-10)) + fmt.Println(LeapYear(2020)) + fmt.Println(LeapYear(2021)) + fmt.Println(LeapYear(2022)) + fmt.Println(LeapYear(-10)) } ``` and the output should be: