diff --git a/CHANGELOG.md b/CHANGELOG.md index 13c8690..bc90a20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/control.rs b/src/control.rs index 662ed58..955aa2d 100644 --- a/src/control.rs +++ b/src/control.rs @@ -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 'bright cyan' on windows 10 +/// println!("{}", "bright cyan".bright_cyan()); // will print 'bright cyan' 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<(), ()> { @@ -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,