From a3283fc2d5573e0c826ffbc7d7c8adbffd2bf0ff Mon Sep 17 00:00:00 2001 From: druyang <46964831+druyang@users.noreply.github.com> Date: Mon, 25 Nov 2024 02:14:21 +0000 Subject: [PATCH 1/2] Updates instruction for order of operations The order matters and is clear --- exercises/concept/secrets/.docs/instructions.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exercises/concept/secrets/.docs/instructions.md b/exercises/concept/secrets/.docs/instructions.md index c7dd13d79..d018ab9e6 100644 --- a/exercises/concept/secrets/.docs/instructions.md +++ b/exercises/concept/secrets/.docs/instructions.md @@ -73,10 +73,10 @@ xorer.(3) Implement `Secrets.secret_combine/2`. It should return a function which takes one argument and applies to it the two functions passed in to `secret_combine` in order. ```elixir -multiply = Secrets.secret_multiply(7) -divide = Secrets.secret_divide(3) -combined = Secrets.secret_combine(multiply, divide) +add_one = Secrets.secret_add(1) +multiply_by_2 = Secrets.secret_multiply(2) +combined = Secrets.secret_combine(add_one, multiply_by_2) -combined.(6) -# => 14 +combined.(3) +# => 8 ``` From 1c74822f919c7be43b4f4f5b7a4049a460282b8d Mon Sep 17 00:00:00 2001 From: Angelika Cathor Date: Mon, 25 Nov 2024 18:21:26 +0100 Subject: [PATCH 2/2] Format --- exercises/concept/secrets/.docs/instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/secrets/.docs/instructions.md b/exercises/concept/secrets/.docs/instructions.md index d018ab9e6..db312afc7 100644 --- a/exercises/concept/secrets/.docs/instructions.md +++ b/exercises/concept/secrets/.docs/instructions.md @@ -73,7 +73,7 @@ xorer.(3) Implement `Secrets.secret_combine/2`. It should return a function which takes one argument and applies to it the two functions passed in to `secret_combine` in order. ```elixir -add_one = Secrets.secret_add(1) +add_one = Secrets.secret_add(1) multiply_by_2 = Secrets.secret_multiply(2) combined = Secrets.secret_combine(add_one, multiply_by_2)