From b8a901a9eafea1805bdd044587036728681fb7c2 Mon Sep 17 00:00:00 2001 From: jayber Date: Tue, 7 Jun 2022 13:56:46 +0100 Subject: [PATCH] feat: improved closure docs and exercises by using into_iter() --- info.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/info.toml b/info.toml index 555b2076..fc70a1b4 100644 --- a/info.toml +++ b/info.toml @@ -183,9 +183,9 @@ of a value owned by a called function. You can replace 'reduce()' with a different function call. Update the closure so that it matches the signature of this new call, and change the code to return the correct type from the sum_letters function. (Using 'sum()' is cheating!) -OR you can change the sort of iterator you get, so that you don't have to return a reference. +OR you can change the way you get the iterator, so that you don't have to return a reference. Pay close attention to the documentation linked to in the exercise: which type -parameters are the same in the function signatures, and which are different. And +parameters are the same in the function signatures, and which are different? And how do the return types of the variations of getting an iterator differ from each other?""" [[exercises]]