From 472232410ee3ec68cceb4cac668ac513aef80493 Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> Date: Mon, 21 Jul 2025 21:15:58 +0300 Subject: [PATCH] Update ch20-04 with tiny typo fix --- src/ch20-04-advanced-functions-and-closures.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch20-04-advanced-functions-and-closures.md b/src/ch20-04-advanced-functions-and-closures.md index 3f2500daf5..b9835dc4c2 100644 --- a/src/ch20-04-advanced-functions-and-closures.md +++ b/src/ch20-04-advanced-functions-and-closures.md @@ -138,7 +138,7 @@ Listing 20-33. Here we have two functions, `returns_closure` and `returns_initialized_closure`, -which both return `impl Fn(i32) -> i32`. Notice that he closures that they +which both return `impl Fn(i32) -> i32`. Notice that the closures that they return are different, even though they implement the same type. If we try to compile this, Rust lets us know that it won’t work: