From b0c3496062be903e0ee5db28d3138b077de1f1d2 Mon Sep 17 00:00:00 2001 From: davhojt Date: Wed, 15 Jun 2022 00:26:20 +0300 Subject: [PATCH] docs(adding_twice): correct grammar --- subjects/adding_twice/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/subjects/adding_twice/README.md b/subjects/adding_twice/README.md index 93ffbd05..d47cceda 100644 --- a/subjects/adding_twice/README.md +++ b/subjects/adding_twice/README.md @@ -2,14 +2,11 @@ ### Instructions -In this exercise you will have to reuse your `add_curry` function (copy and paste it directly in your lib.rs file). -Then you have to create the function `twice` using closures, this function will -take a function f(x) as parameter and return a function f(f(x)). -So, the purpose of this function is to add two times the value in `add_curry` to the original value. +You'll need to reuse your `add_curry` function. Copy and paste it directly into your `lib.rs` file. -### Notions +Now create a function named `twice` using closures. This function will take a function `f(x)` as parameter, and return a function `f(f(x))`. -- [higher order function](https://doc.rust-lang.org/rust-by-example/fn/hof.html#higher-order-functions) +So, the purpose of this function is to add two times the value in `add_curry` to the original value. ### Expected functions @@ -57,3 +54,7 @@ The value is 67 The value is -57 $ ``` + +### Notions + +- [higher order function](https://doc.rust-lang.org/rust-by-example/fn/hof.html#higher-order-functions)