Skip to content

Commit 196ef69

Browse files
chubeijyn514
authored andcommitted
Fix typo: [upv.rs_mentioned] -> [upvars_mentioned]
1 parent ffcc629 commit 196ef69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/closure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Let's start with defining a term that we will be using quite a bit in the rest o
115115
*upvar*. An **upvar** is a variable that is local to the function where the closure is defined. So,
116116
in the above examples, **x** will be an upvar to the closure. They are also sometimes referred to as
117117
the *free variables* meaning they are not bound to the context of the closure.
118-
[`compiler/rustc_middle/src/ty/query/mod.rs`][upvars] defines a query called *upv.rs_mentioned*
118+
[`compiler/rustc_middle/src/ty/query/mod.rs`][upvars] defines a query called *upvars_mentioned*
119119
for this purpose.
120120

121121
[upvars]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_query_impl/queries/struct.upvars_mentioned.html

0 commit comments

Comments
 (0)