From efaf1ab92dd7b4c7bde83ee79c530fe12310ecb1 Mon Sep 17 00:00:00 2001 From: davhojt Date: Tue, 31 May 2022 05:46:09 +0300 Subject: [PATCH] docs(spelling) correct grammar --- subjects/spelling/README.md | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/subjects/spelling/README.md b/subjects/spelling/README.md index 5c08bf5a9..671769b5a 100644 --- a/subjects/spelling/README.md +++ b/subjects/spelling/README.md @@ -2,26 +2,20 @@ ### Instructions -In this exercise a number between 0 and 1000000 will be generated. -Your purpose is to create the function `spell` that will spell the numbers generated. +In this exercise, you'll create the function `spell` that will spell a generated number. -So, if the program generates the number: +Here are some examples of what your function should return: -- 1 your function will return the string "one" -- 14 your function will return the string "fourteen". -- 96 your function will return the string "ninety-six" -- 100 your function will return the string "one hundred". -- 101 your function will return the string "one hundred one" -- 348 your function will return the string "one hundred twenty-three" -- 1002 your function will return the string "one thousand two". -- 1000000 your function will return the string "one million" - -Only positive numbers will be tested. (Up to a million). - -### Notions - -- [patterns](https://doc.rust-lang.org/book/ch18-00-patterns.html) +- `1` -> `"one"` +- `14` -> `"fourteen".` +- `96` -> `"ninety-six"` +- `100` -> `"one hundred".` +- `101` -> `"one hundred one"` +- `348` -> `"one hundred twenty-three"` +- `1002` -> `"one thousand two".` +- `1000000` -> `"one million"` +> Only positive numbers will be tested, up to `"one million"`. ### Expected function @@ -52,3 +46,7 @@ three hundred forty-eight nine thousand nine hundred ninety-six $ ``` + +### Notions + +- [patterns](https://doc.rust-lang.org/book/ch18-00-patterns.html)