Skip to content

Commit e8bf36e

Browse files
Fix some typos
1 parent de2f15a commit e8bf36e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ term.clear_line()?;
3939

4040
## Colors and Styles
4141

42-
`console` automaticaly detects when to use colors based on the tty flag. It also
42+
`console` automatically detects when to use colors based on the tty flag. It also
4343
provides higher level wrappers for styling text and other things that can be
4444
displayed with the `style` function and utility types.
4545

examples/cursor_at.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ use console::{style, Term};
88

99
fn write_chars() -> io::Result<()> {
1010
let term = Term::stdout();
11-
let (heigth, width) = term.size();
11+
let (height, width) = term.size();
1212
for x in 0..width {
13-
for y in 0..heigth {
13+
for y in 0..height {
1414
term.move_cursor_to(x as usize, y as usize)?;
1515
let text = if (x + y) % 2 == 0 {
1616
format!("{}", style(x % 10).black().on_red())

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
//!
3434
//! # Colors and Styles
3535
//!
36-
//! `console` automaticaly detects when to use colors based on the tty flag. It also
36+
//! `console` automatically detects when to use colors based on the tty flag. It also
3737
//! provides higher level wrappers for styling text and other things that can be
3838
//! displayed with the `style` function and utility types.
3939
//!
@@ -56,7 +56,7 @@
5656
//!
5757
//! # Working with ANSI Codes
5858
//!
59-
//! The crate provids the function `strip_ansi_codes` to remove ANSI codes
59+
//! The crate provides the function `strip_ansi_codes` to remove ANSI codes
6060
//! from a string as well as `measure_text_width` to calculate the width of a
6161
//! string as it would be displayed by the terminal. Both of those together
6262
//! are useful for more complex formatting.

src/unix_term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ pub fn read_single_key(ctrlc_key: bool) -> io::Result<Key> {
317317
let rv: io::Result<Key> = read_single_key_impl(fd);
318318
c_result(|| unsafe { libc::tcsetattr(fd, libc::TCSADRAIN, &original) })?;
319319

320-
// if the user hit ^C we want to signal SIGINT to outselves.
320+
// if the user hit ^C we want to signal SIGINT to ourselves.
321321
if let Err(ref err) = rv {
322322
if err.kind() == io::ErrorKind::Interrupted {
323323
if !ctrlc_key {

src/windows_term/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ pub fn read_single_key(_ctrlc_key: bool) -> io::Result<Key> {
402402
// Confirm that there is a next character to read.
403403
if get_key_event_count()? == 0 {
404404
let message = format!(
405-
"Read invlid utf16 {}: {}",
405+
"Read invalid utf16 {}: {}",
406406
unicode_char,
407407
InvalidUtf16Tuple::MissingSecond
408408
);

0 commit comments

Comments
 (0)