Skip to content

Commit b0ae0c0

Browse files
operator-expr: remove stray word in footnote
"only for closures that {x} can be {y}" repeats the limitation; it should either be "only closures that {x} can be {y}", or, if the capability ("{y}") is implicit, it can be "only for closures that {x}". Go with the first option that keeps the context, and remove the extra "for".
1 parent b79ffa9 commit b0ae0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/operator-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ reference types and `mut` or `const` in pointer types.
549549
[^lessmut]: only when `m₁` is `mut` or `m₂` is `const`. Casting `mut` reference/pointer to
550550
`const` pointer is allowed.
551551

552-
[^no-capture]: only for closures that do not capture (close over) any local variables can be casted to function pointers.
552+
[^no-capture]: only closures that do not capture (close over) any local variables can be casted to function pointers.
553553

554554
### Semantics
555555

0 commit comments

Comments
 (0)