Skip to content

Commit

Permalink
Fix 'is_enabled()' doctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Jun 22, 2023
1 parent f1855a1 commit e8fab58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ pub fn whenever(condition: Condition) {
///
/// ```rust
/// // Styling is enabled by default.
/// # yansi::enable();
/// assert!(yansi::is_enabled());
///
/// // Disable it with `Painted::disable()`.
Expand Down

0 comments on commit e8fab58

Please sign in to comment.