From 132daa446bd98f8925e0c2cc2ecbc08d38441133 Mon Sep 17 00:00:00 2001 From: "Panagiotis \"Ivory\" Vasilopoulos" Date: Sun, 30 Oct 2022 19:27:01 +0100 Subject: [PATCH] Clarify Fn in fn/closures/input_parameters.md Being explicit may be a bit redundant, but I believe that words like "However" grab the reader's attention, which is kind of important here. --- src/fn/closures/input_parameters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fn/closures/input_parameters.md b/src/fn/closures/input_parameters.md index 8f4307ff53..41497179f1 100644 --- a/src/fn/closures/input_parameters.md +++ b/src/fn/closures/input_parameters.md @@ -22,7 +22,7 @@ closure. This is because if a move is possible, then any type of borrow should also be possible. Note that the reverse is not true. If the parameter is annotated as `Fn`, then capturing variables by `&mut T` or `T` are not -allowed. +allowed. However, `&T` is allowed. In the following example, try swapping the usage of `Fn`, `FnMut`, and `FnOnce` to see what happens: