From 873af87211c6e260379c114db93647170686b7e9 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Fri, 1 Feb 2019 23:13:30 +0800 Subject: [PATCH] Fix an incorrect note Closures that capture local variables shouldn't be able to cast to function pointers, should they? --- src/expressions/operator-expr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expressions/operator-expr.md b/src/expressions/operator-expr.md index 8cfbc7a07c7e5..05468277d25ce 100644 --- a/src/expressions/operator-expr.md +++ b/src/expressions/operator-expr.md @@ -352,7 +352,7 @@ well as the following additional casts. Here `*T` means either `*const T` or \* or `T` and `V` are compatible unsized types, e.g., both slices, both the same trait object. -\*\* only for closures that do capture (close over) any local variables +\*\* only for closures that do not capture (close over) any local variables ### Semantics