Skip to content

Commit

Permalink
incorporate typos spotted by @pvdrz
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Oct 7, 2024
1 parent d330baa commit 641854e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system/term/user_term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl UserTerm {
termios
} else {
// SAFETY: `termios` is a valid pointer to pass to tcgetattr; if that calls succeeds,
// it will have initialized the `termios` strucutre
// it will have initialized the `termios` structure
*self.original_termios.insert(unsafe {
let mut termios = MaybeUninit::uninit();
cerr(tcgetattr(fd, termios.as_mut_ptr()))?;
Expand All @@ -247,7 +247,7 @@ impl UserTerm {
};

// Set terminal to raw mode.
// SAFETY: `term` is a valid, initialized pointer to ` struct of type `termios`, which
// SAFETY: `term` is a valid, initialized pointer to struct of type `termios`, which
// was previously obtained through `tcgetattr`.
unsafe { cfmakeraw(&mut term) };
// Enable terminal signals.
Expand Down

0 comments on commit 641854e

Please sign in to comment.