about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorSamuel Moelius <35515885+smoelius@users.noreply.github.com>2022-12-02 19:02:26 -0500
committerGitHub <noreply@github.com>2022-12-03 09:02:26 +0900
commitc8012c8e6f3ce05deb316e755998bf1b0c548e3e (patch)
treeb1de5b76dbd0e1e57f2fac22a784accf5d240be8 /src/doc/rustc-dev-guide
parentd89b81debc6ec4348f7cb36e70e3115f868b4fdf (diff)
downloadrust-c8012c8e6f3ce05deb316e755998bf1b0c548e3e.tar.gz
rust-c8012c8e6f3ce05deb316e755998bf1b0c548e3e.zip
Typo (#1520)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/closure.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/closure.md b/src/doc/rustc-dev-guide/src/closure.md
index c3906a80bbe..5746fd4de59 100644
--- a/src/doc/rustc-dev-guide/src/closure.md
+++ b/src/doc/rustc-dev-guide/src/closure.md
@@ -142,11 +142,11 @@ declared in the file [`compiler/rustc_middle/src/ty/mod.rs`][ty].
 [ty]:https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/index.html
 
 Before we go any further, let's discuss how we can examine the flow of control through the rustc
-codebase. For closures specifically, set the `RUST_LOG` env variable as below and collect the
+codebase. For closures specifically, set the `RUSTC_LOG` env variable as below and collect the
 output in a file:
 
 ```console
-> RUST_LOG=rustc_hir_typeck::upvar rustc +stage1 -Z dump-mir=all \
+> RUSTC_LOG=rustc_hir_typeck::upvar rustc +stage1 -Z dump-mir=all \
     <.rs file to compile> 2> <file where the output will be dumped>
 ```