Skip to content

Commit

Permalink
Merge pull request #1640 from bockensm/patch-18
Browse files Browse the repository at this point in the history
Corrected isLeapYear example to pass a numeric year instead of a date…
  • Loading branch information
pfreitag authored Feb 29, 2024
2 parents 64c7958 + d2fa2ed commit 57d0b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/en/isleapyear.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{
"title": "Is the current date in a leap year?",
"description": "",
"code": "date = now();\nisLeapYear = isLeapYear(date);\nwriteOutput(isLeapYear);",
"code": "date = now();\nisLeapYear = isLeapYear(year(date));\nwriteOutput(isLeapYear);",
"result": "",
"runnable":true
}
Expand Down

0 comments on commit 57d0b0e

Please sign in to comment.