Skip to content

Commit

Permalink
Merge pull request #133 from epage/typo
Browse files Browse the repository at this point in the history
fix!: Rename SendContolError to SendControlError
  • Loading branch information
epage authored Nov 5, 2024
2 parents 5b71392 + a72d4fa commit b242b42
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 b242b42

Please sign in to comment.