Skip to content

Commit

Permalink
Update config.json and sync docs
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dango committed Jul 28, 2024
1 parent a095449 commit e9457c7
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 24 deletions.
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"%{kebab_slug}.ys"
],
"test": [
"%{kebab_slug}/test/test-1.ys"
"test/test-1.ys",
"Makefile"
],
"example": [
".meta/%{kebab_slug}.ys"
Expand Down
9 changes: 4 additions & 5 deletions exercises/practice/hello-world/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
The classical introductory exercise.
Just say "Hello, World!".

["Hello, World!"][hello-world] is the traditional first program for beginning
programming in a new language or environment.
["Hello, World!"][hello-world] is the traditional first program for beginning programming in a new language or environment.

The objectives are simple:

* Modify the provided code so that it produces the string "Hello, World!".
* Run the test suite and make sure that it succeeds.
* Submit your solution and check it at the website.
- Modify the provided code so that it produces the string "Hello, World!".
- Run the test suite and make sure that it succeeds.
- Submit your solution and check it at the website.

If everything goes well, you will be ready to fetch your first real exercise.

Expand Down
3 changes: 2 additions & 1 deletion exercises/practice/hello-world/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"hello-world.ys"
],
"test": [
"test/test-1.ys"
"test/test-1.ys",
"Makefile"
],
"example": [
".meta/hello-world.ys"
Expand Down
15 changes: 6 additions & 9 deletions exercises/practice/leap/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@

A leap year (in the Gregorian calendar) occurs:

* In every year that is evenly divisible by 4.
* Unless the year is evenly divisible by 100, in which case it's only a leap
year if the year is also evenly divisible by 400.
- In every year that is evenly divisible by 4.
- Unless the year is evenly divisible by 100, in which case it's only a leap year if the year is also evenly divisible by 400.

Some examples:

* 1997 was not a leap year as it's not divisible by 4.
* 1900 was not a leap year as it's not divisible by 400.
* 2000 was a leap year!
- 1997 was not a leap year as it's not divisible by 4.
- 1900 was not a leap year as it's not divisible by 400.
- 2000 was a leap year!

~~~~exercism/note
For a delightful, four-minute explanation of the whole phenomenon of leap
years, check out [this YouTube video](
https://www.youtube.com/watch?v=xX96xng7sAE).
For a delightful, four-minute explanation of the whole phenomenon of leap years, check out [this YouTube video](https://www.youtube.com/watch?v=xX96xng7sAE).
~~~~
3 changes: 2 additions & 1 deletion exercises/practice/leap/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"leap.ys"
],
"test": [
"test/test-1.ys"
"test/test-1.ys",
"Makefile"
],
"example": [
".meta/leap.ys"
Expand Down
9 changes: 3 additions & 6 deletions exercises/practice/two-fer/.docs/introduction.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Introduction

In some English accents, when you say "two for" quickly, it sounds like "two
fer".
In some English accents, when you say "two for" quickly, it sounds like "two fer".
Two-for-one is a way of saying that if you buy one, you also get one for free.
So the phrase "two-fer" often implies a two-for-one offer.

Imagine a bakery that has a holiday offer where you can buy two cookies for the
price of one ("two-fer one!").
You take the offer and (very generously) decide to give the extra cookie to
someone else in the queue.
Imagine a bakery that has a holiday offer where you can buy two cookies for the price of one ("two-fer one!").
You take the offer and (very generously) decide to give the extra cookie to someone else in the queue.
3 changes: 2 additions & 1 deletion exercises/practice/two-fer/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"two-fer.ys"
],
"test": [
"test/test-1.ys"
"test/test-1.ys",
"Makefile"
],
"example": [
".meta/two-fer.ys"
Expand Down

0 comments on commit e9457c7

Please sign in to comment.