about summary refs log tree commit diff
path: root/compiler/rustc_log/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-02-10 15:07:55 +0100
committerRalf Jung <post@ralfj.de>2023-02-10 15:07:55 +0100
commit623ed8e481204b2ed3876084f765ac4fb59798b5 (patch)
tree1a5b88f059c0ad38b91f7eb7c2b4573f8de02a4d /compiler/rustc_log/src
parent569c2fe54ba676e6aaeece218e5564c4508d7c73 (diff)
fix rustc_log doctest
Diffstat (limited to 'compiler/rustc_log/src')
-rw-r--r--compiler/rustc_log/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_log/src/lib.rs b/compiler/rustc_log/src/lib.rs
index e3d850e6a3b..de26fd61e4d 100644
--- a/compiler/rustc_log/src/lib.rs
+++ b/compiler/rustc_log/src/lib.rs
@@ -14,7 +14,7 @@
 //!
 //! ```
 //! fn main() {
-//!     rustc_log::init_rustc_env_logger().unwrap();
+//!     rustc_log::init_env_logger("LOG").unwrap();
 //!
 //!     let edition = rustc_span::edition::Edition::Edition2021;
 //!     rustc_span::create_session_globals_then(edition, || {
@@ -23,9 +23,9 @@
 //! }
 //! ```
 //!
-//! Now `RUSTC_LOG=debug cargo run` will run your minimal main.rs and show
+//! Now `LOG=debug cargo run` will run your minimal main.rs and show
 //! rustc's debug logging. In a workflow like this, one might also add
-//! `std::env::set_var("RUSTC_LOG", "debug")` to the top of main so that `cargo
+//! `std::env::set_var("LOG", "debug")` to the top of main so that `cargo
 //! run` by itself is sufficient to get logs.
 //!
 //! The reason rustc_log is a tiny separate crate, as opposed to exposing the