Skip to content

Commit

Permalink
fix!: Rename SendContolError to SendControlError
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Nov 5, 2024
1 parent 77240c2 commit a72d4fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions _typos.toml

This file was deleted.

2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub enum Error {
Io(#[from] std::io::Error),

#[error("Did not understand Ctrl-{}", .0)]
SendContolError(char),
SendControlError(char),

#[error("Failed to send via MPSC channel")]
MpscSendError,
Expand Down
2 changes: 1 addition & 1 deletion src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl<W: Write> StreamSession<W> {
']' => 29,
'^' => 30,
'_' => 31,
_ => return Err(Error::SendContolError(c)),
_ => return Err(Error::SendControlError(c)),
};
self.writer.write_all(&[code])?;
// stdout is line buffered, so needs a flush
Expand Down

0 comments on commit a72d4fa

Please sign in to comment.