Skip to content

Commit 969eacc

Browse files
authored
Correct documentation for Build::debug
1 parent 80deedc commit 969eacc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,8 @@ impl Build {
771771
/// Configures whether the compiler will emit debug information when
772772
/// generating object files.
773773
///
774-
/// This option is automatically scraped from the `PROFILE` environment
775-
/// variable by build scripts (only enabled when the profile is "debug"), so
776-
/// it's not required to call this function.
774+
/// This option is automatically scraped from the `DEBUG` environment
775+
/// variable by build scripts, so it's not required to call this function.
777776
pub fn debug(&mut self, debug: bool) -> &mut Build {
778777
self.debug = Some(debug);
779778
self

0 commit comments

Comments
 (0)