Skip to content

Commit 132daa4

Browse files
committed
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.
1 parent a5f384b commit 132daa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fn/closures/input_parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ closure.
2222
This is because if a move is possible, then any type of borrow should also
2323
be possible. Note that the reverse is not true. If the parameter is
2424
annotated as `Fn`, then capturing variables by `&mut T` or `T` are not
25-
allowed.
25+
allowed. However, `&T` is allowed.
2626

2727
In the following example, try swapping the usage of `Fn`, `FnMut`, and
2828
`FnOnce` to see what happens:

0 commit comments

Comments
 (0)