Skip to content

Commit

Permalink
Fix type in readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jgardona committed Jan 10, 2024
1 parent 7391b51 commit a8c3173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ flush(&mut *astream, &mut stdout)?;

```rust
let mut astream = AnsiEscapeStream::default();
astream.write_text_fc(FCGREEN, "123").unwrap();
astream.write_text_fc_fmt(FCGREEN, format_args!("123")).unwrap();
// asserts that fcgreen was writed and also reseted with fcdefault
assert_eq!(
&[0x1b, 0x5b, 0x33, 0x32, 0x6d, 0x31, 0x32, 0x33, 0x1b, 0x5b, 0x33, 0x39, 0x6d],
Expand Down

0 comments on commit a8c3173

Please sign in to comment.