diff options
| author | chubei <914745487@qq.com> | 2021-11-07 20:31:08 +0800 |
|---|---|---|
| committer | Joshua Nelson <github@jyn.dev> | 2021-11-07 07:48:47 -0600 |
| commit | bc3e28ef2fc1140756e6063f0d8e5d032b4580c1 (patch) | |
| tree | 8553638993077df594e63c4a9229d9142cfe2cd0 /src/doc/rustc-dev-guide | |
| parent | f334ea94948528d5b6b9497c798e3b031dde3479 (diff) | |
| download | rust-bc3e28ef2fc1140756e6063f0d8e5d032b4580c1.tar.gz rust-bc3e28ef2fc1140756e6063f0d8e5d032b4580c1.zip | |
Fix typo: [upv.rs_mentioned] -> [upvars_mentioned]
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/closure.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/closure.md b/src/doc/rustc-dev-guide/src/closure.md index a38e93241a9..b43be321386 100644 --- a/src/doc/rustc-dev-guide/src/closure.md +++ b/src/doc/rustc-dev-guide/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 |
