From de7e0d25dd6d3bd7165ca19999bd50a3022d4b8d Mon Sep 17 00:00:00 2001 From: Mujeebullah Kalwar Date: Thu, 20 Jul 2023 02:44:15 +0500 Subject: [PATCH] Typo Fixed `evironment` to `environment` --- solutions/functional-programing/closure.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solutions/functional-programing/closure.md b/solutions/functional-programing/closure.md index fd023da..d4cc367 100644 --- a/solutions/functional-programing/closure.md +++ b/solutions/functional-programing/closure.md @@ -245,7 +245,7 @@ fn main() { 10. ```rust -/* Fill in the blank and fix the errror */ +/* Fill in the blank and fix the error */ // You can also use `impl FnOnce(i32) -> i32` fn create_fn() -> impl Fn(i32) -> i32 { let num = 5; @@ -261,11 +261,11 @@ fn main() { ``` ```rust -/* Fill in the blank and fix the errror */ +/* Fill in the blank and fix the error */ fn create_fn() -> Box i32> { let num = 5; - // how does the following closure capture the evironment variable `num` + // how does the following closure capture the environment variable `num` // &T, &mut T, T ? Box::new(move |x| x + num) }