From 196ef69aa68f2cef44f37566ee7db37daf00301b Mon Sep 17 00:00:00 2001 From: chubei <914745487@qq.com> Date: Sun, 7 Nov 2021 20:31:08 +0800 Subject: [PATCH] Fix typo: [upv.rs_mentioned] -> [upvars_mentioned] --- src/closure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/closure.md b/src/closure.md index a38e93241a91c..b43be321386d2 100644 --- a/src/closure.md +++ b/src/closure.md @@ -115,7 +115,7 @@ Let's start with defining a term that we will be using quite a bit in the rest o *upvar*. An **upvar** is a variable that is local to the function where the closure is defined. So, in the above examples, **x** will be an upvar to the closure. They are also sometimes referred to as the *free variables* meaning they are not bound to the context of the closure. -[`compiler/rustc_middle/src/ty/query/mod.rs`][upvars] defines a query called *upv.rs_mentioned* +[`compiler/rustc_middle/src/ty/query/mod.rs`][upvars] defines a query called *upvars_mentioned* for this purpose. [upvars]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_query_impl/queries/struct.upvars_mentioned.html