From 969eacc3e0f7faa693da2f4abf2cf971f774a9c9 Mon Sep 17 00:00:00 2001 From: kryptan Date: Sat, 15 Jun 2019 01:15:15 +0300 Subject: [PATCH] Correct documentation for `Build::debug` --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1b5d9ca..769eadb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -771,9 +771,8 @@ impl Build { /// Configures whether the compiler will emit debug information when /// generating object files. /// - /// This option is automatically scraped from the `PROFILE` environment - /// variable by build scripts (only enabled when the profile is "debug"), so - /// it's not required to call this function. + /// This option is automatically scraped from the `DEBUG` environment + /// variable by build scripts, so it's not required to call this function. pub fn debug(&mut self, debug: bool) -> &mut Build { self.debug = Some(debug); self