We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c58903 commit d617030Copy full SHA for d617030
doc/tutorial.md
@@ -1539,9 +1539,9 @@ for spawning [tasks][tasks].
1539
1540
Rust closures have a convenient subtyping property: you can pass any kind of
1541
closure (as long as the arguments and return types match) to functions
1542
-that expect a `fn()`. Thus, when writing a higher-order function that
+that expect a `&fn()`. Thus, when writing a higher-order function that
1543
only calls its function argument, and does nothing else with it, you
1544
-should almost always declare the type of that argument as `fn()`. That way,
+should almost always declare the type of that argument as `&fn()`. That way,
1545
callers may pass any kind of closure.
1546
1547
~~~~
0 commit comments