From fd1a7b5a4f1a3470da49dd46230430be9312680e Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 28 Sep 2023 13:45:28 +0100 Subject: [PATCH] Feedback from review --- concepts/use-expressions/introduction.md | 4 ++-- exercises/concept/expert-experiments/.docs/introduction.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/concepts/use-expressions/introduction.md b/concepts/use-expressions/introduction.md index 2d9b7e865..87050692f 100644 --- a/concepts/use-expressions/introduction.md +++ b/concepts/use-expressions/introduction.md @@ -2,7 +2,7 @@ In Gleam it is common to write and use higher order functions, that is functions that take other functions as arguments. Sometimes when using many higher order functions at once the code can become difficult to read, with many layers of indentation. -For example, here is a function that calls several functions that return `Result(Int, Nil)`, and sums the values if all three are successful. +For example, here is a function that calls several functions that return `Result(Int, Nil)`, and sums the values if all four are successful. ```gleam import gleam/result @@ -34,7 +34,7 @@ pub fn main() -> Result(Int, Nil) { } ``` -A `use` expression collects all the following statements in the block into and passes it as a callback function as the final argument to the function call. The variables between the `use` keyword and the `<-` symbol are the names of the arguments that will be passed to the callback function. +A `use` expression collects all the following statements in the block and passes it as a callback function as the final argument to the function call. The variables between the `use` keyword and the `<-` symbol are the names of the arguments that will be passed to the callback function. ```gleam // This use expression diff --git a/exercises/concept/expert-experiments/.docs/introduction.md b/exercises/concept/expert-experiments/.docs/introduction.md index cf70ccd82..d39967a6a 100644 --- a/exercises/concept/expert-experiments/.docs/introduction.md +++ b/exercises/concept/expert-experiments/.docs/introduction.md @@ -4,7 +4,7 @@ In Gleam it is common to write and use higher order functions, that is functions that take other functions as arguments. Sometimes when using many higher order functions at once the code can become difficult to read, with many layers of indentation. -For example, here is a function that calls several functions that return `Result(Int, Nil)`, and sums the values if all three are successful. +For example, here is a function that calls several functions that return `Result(Int, Nil)`, and sums the values if all four are successful. ```gleam import gleam/result @@ -36,7 +36,7 @@ pub fn main() -> Result(Int, Nil) { } ``` -A `use` expression collects all the following statements in the block into and passes it as a callback function as the final argument to the function call. The variables between the `use` keyword and the `<-` symbol are the names of the arguments that will be passed to the callback function. +A `use` expression collects all the following statements in the block and passes it as a callback function as the final argument to the function call. The variables between the `use` keyword and the `<-` symbol are the names of the arguments that will be passed to the callback function. ```gleam // This use expression