Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in documentation and test code #118

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/combo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,19 +473,19 @@ mod tests {
}

#[test]
fn fg_overide() {
fn fg_override() {
let test = "test".green().yellow().red().on_blue();
assert_eq!(test.to_string(), "\x1b[31;44mtest\x1b[0m");
}

#[test]
fn bg_overide() {
fn bg_override() {
let test = "test".on_green().on_yellow().on_blue().red();
assert_eq!(test.to_string(), "\x1b[31;44mtest\x1b[0m");
}

#[test]
fn multiple_overide() {
fn multiple_override() {
let test = "test"
.on_green()
.on_yellow()
Expand Down
2 changes: 1 addition & 1 deletion src/dyn_styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl Style {
(dimmed, set_dimmed),
/// Make the text italicized
(italic, set_italic),
/// Make the text italicized
/// Make the text underlined
(underline, set_underline),
/// Make the text blink
(blink, set_blink),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ pub trait OwoColorize: Sized {
dimmed DimDisplay,
/// Make the text italicized
italic ItalicDisplay,
/// Make the text italicized
/// Make the text underlined
underline UnderlineDisplay,
/// Make the text blink
blink BlinkDisplay,
Expand Down
Loading