Skip to content

Commit

Permalink
Fix typo: [upv.rs_mentioned] -> [upvars_mentioned]
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei authored and jyn514 committed Nov 7, 2021
1 parent ffcc629 commit 196ef69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/closure.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 196ef69

Please sign in to comment.