Browse Source

Correct documentation for `Build::debug`

wip-new-parallel
kryptan 6 years ago
committed by GitHub
parent
commit
969eacc3e0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/lib.rs

5
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

Loading…
Cancel
Save