You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rustlings iterators4, part of the instructions says "dont use return". I feel like this is poorly worded, as rust functions need to return someting, and in fact, the entire point of the function is to return the factorial.
If its about early returns (returning before the end of the function) then I would say something like "dont return early". Since end of function returns can be explict (e.g., return thing;) or implicit (thing) with no diffrence to functionality, and likewise you can return anywhere without using the return keyword.
Just felt really weird and a little unclear on what the intention is and felt like it should be cleaned up a bit.
The text was updated successfully, but these errors were encountered:
In rustlings
iterators4
, part of the instructions says "dont use return". I feel like this is poorly worded, as rust functions need to return someting, and in fact, the entire point of the function is to return the factorial.If its about early returns (returning before the end of the function) then I would say something like "dont return early". Since end of function returns can be explict (e.g.,
return thing;
) or implicit (thing
) with no diffrence to functionality, and likewise you can return anywhere without using the return keyword.Just felt really weird and a little unclear on what the intention is and felt like it should be cleaned up a bit.
The text was updated successfully, but these errors were encountered: