Skip to content

Commit

Permalink
Fix typo in 'src/control.rs' (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
becky112358 committed Jul 3, 2023
1 parent e886538 commit cfd6897
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Unreleased
- Fix typo in `src/control.rs`.

# 2.0.1 (July 3, 2023)
- Add edition for future compatibility.
- Implement custom colors that can be stored in a variable.
Expand Down
6 changes: 3 additions & 3 deletions src/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ use std::sync::atomic::{AtomicBool, Ordering};
/// ```rust
/// use colored::*;
/// control::set_virtual_terminal(false).unwrap();
/// println!("{}", "bright cyan".bright_cyan()); // will print '[96mbright cyan[0m' on windows 10
/// println!("{}", "bright cyan".bright_cyan()); // will print '[96mbright cyan[0m' on windows 10
///
/// control::set_virtual_terminal(true).unwrap();
/// println!("{}", "bright cyan".bright_cyan()); // will print correctly
/// println!("{}", "bright cyan".bright_cyan()); // will print correctly
/// ```
#[cfg(windows)]
pub fn set_virtual_terminal(use_virtual: bool) -> Result<(), ()> {
Expand Down Expand Up @@ -60,7 +60,7 @@ pub fn set_virtual_terminal(use_virtual: bool) -> Result<(), ()> {
Ok(())
}

/// A flag to to if coloring should occur.
/// A flag for whether coloring should occur.
pub struct ShouldColorize {
clicolor: bool,
clicolor_force: Option<bool>,
Expand Down

0 comments on commit cfd6897

Please sign in to comment.