diff --git a/exercises/simple-cipher/README.md b/exercises/simple-cipher/README.md index 7c4be8177..33dc6fe7a 100644 --- a/exercises/simple-cipher/README.md +++ b/exercises/simple-cipher/README.md @@ -61,10 +61,7 @@ substitution cipher a little more fault tolerant by providing a source of randomness and ensuring that the key contains only lowercase letters. If someone doesn't submit a key at all, generate a truly random key of -at least 100 characters in length. - -If the key submitted is not composed only of lowercase letters, your -solution should handle the error in a language-appropriate way. +at least 100 alphanumeric characters in length. ## Extensions diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md index 93a27a1ef..ff76e3197 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -2,15 +2,28 @@ `Two-fer` or `2-fer` is short for two for one. One for you and one for me. +Given a name, return a string with the message: + ```text -"One for X, one for me." +One for X, one for me. ``` -When X is a name or "you". +Where X is the given name. + +However, if the name is missing, return the string: + +```text +One for you, one for me. +``` -If the given name is "Alice", the result should be "One for Alice, one for me." -If no name is given, the result should be "One for you, one for me." +Here are some examples: +|Name | String to return +|:------:|:-----------------: +|Alice | One for Alice, one for me. +|Bob | One for Bob, one for me. +| | One for you, one for me. +|Zaphod | One for Zaphod, one for me. ## Rust Installation @@ -67,7 +80,7 @@ If you want to know more about Exercism, take a look at the [contribution guide] ## Source -[https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer) +[https://github.com/exercism/problem-specifications/issues/757](https://github.com/exercism/problem-specifications/issues/757) ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.