@@ -25,7 +25,7 @@ functions, as an abbreviation for defining and capturing a separate function.
2525
2626Significantly, closure expressions _ capture their environment_ , which regular
2727[ function definitions] do not. Without the ` move ` keyword, the closure expression
28- [ infers how it captures each variable from its environment] ( types.html#capture-modes ) ,
28+ [ infers how it captures each variable from its environment] ( types/closure .html#capture-modes ) ,
2929preferring to capture by shared reference, effectively borrowing
3030all outer variables mentioned inside the closure's body. If needed the compiler
3131will infer that instead mutable references should be taken, or that the values
@@ -35,7 +35,7 @@ prefixing it with the `move` keyword. This is often used to ensure that the
3535closure's type is ` 'static ` .
3636
3737The compiler will determine which of the [ closure
38- traits] ( types.html#call-traits-and-coercions ) the closure's type will implement by how it
38+ traits] ( types/closure .html#call-traits-and-coercions ) the closure's type will implement by how it
3939acts on its captured variables. The closure will also implement
4040[ ` Send ` ] ( special-types-and-traits.html#send ) and/or
4141[ ` Sync ` ] ( special-types-and-traits.html#sync ) if all of its captured types do.
@@ -67,5 +67,5 @@ ten_times(move |j| println!("{}, {}", word, j));
6767
6868[ _Expression_ ] : expressions.html
6969[ _BlockExpression_ ] : expressions/block-expr.html
70- [ _TypeNoBounds_ ] : types.html
70+ [ _TypeNoBounds_ ] : types.html#type-expressions
7171[ _FunctionParameters_ ] : items/functions.html
0 commit comments