We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d08eb98 commit d243fa1Copy full SHA for d243fa1
library/std/src/keyword_docs.rs
@@ -943,8 +943,12 @@ mod mod_keyword {}
943
/// Capture a [closure]'s environment by value.
944
///
945
/// `move` converts any variables captured by reference or mutable reference
946
-/// to owned by value variables. The three [`Fn` trait]'s mirror the ways to capture
947
-/// variables, when `move` is used, the closures is represented by the `FnOnce` trait.
+/// to owned by value variables.
+///
948
+/// Note: `move` closures may still implement [`Fn`] or [`FnMut`], even though
949
+/// they capture variables by `move`. This is because the traits implemented by
950
+/// a closure type are determined by *what* the closure does with captured
951
+/// values, not *how* it captures them.
952
953
/// ```rust
954
/// let capture = "hello";
0 commit comments