Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
CAESIUS-TIM authored and eldruin committed Nov 20, 2023
1 parent 919f9df commit 6000811
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ targets = [
{ triple = "armv7-linux-androideabi" },
{ triple = "i686-pc-windows-gnu" },
{ triple = "i686-pc-windows-msvc" },
{ triple = "i686-unknwon-linux-gnu" },
{ triple = "i686-unknown-linux-gnu" },
{ triple = "i686-unknown-linux-musl" },
{ triple = "x86_64-apple-darwin" },
{ triple = "x86_64-pc-windows-gnu" },
Expand Down
2 changes: 1 addition & 1 deletion examples/loopback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'a> Stats<'a> {
self.total() / (self.times.len() as f32)
}

/// Provides the maximum transation time
/// Provides the maximum transaction time
fn max(&self) -> f32 {
self.times
.iter()
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//! with ports. The `SerialPort::new().open*()` and `available_ports()` functions in the root
//! provide cross-platform functionality.
//!
//! For platform-specific functionaly, this crate is split into a `posix` and `windows` API with
//! For platform-specific functionality, this crate is split into a `posix` and `windows` API with
//! corresponding `TTYPort` and `COMPort` structs (that both implement the `SerialPort` trait).
//! Using the platform-specific `SerialPort::new().open*()` functions will return the
//! platform-specific port object which allows access to platform-specific functionality.
Expand Down Expand Up @@ -548,7 +548,7 @@ pub trait SerialPort: Send + io::Read + io::Write {
/// should look at [mio-serial](https://crates.io/crates/mio-serial) or
/// [tokio-serial](https://crates.io/crates/tokio-serial).
///
/// Also, you must be very carefull when changing the settings of a cloned `SerialPort` : since
/// Also, you must be very careful when changing the settings of a cloned `SerialPort` : since
/// the settings are cached on a per object basis, trying to modify them from two different
/// objects can cause some nasty behavior.
///
Expand Down
2 changes: 1 addition & 1 deletion src/posix/termios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub(crate) fn set_termios(fd: RawFd, termios: &libc::termios, baud_rate: u32) ->
let res = unsafe { libc::tcsetattr(fd, libc::TCSANOW, termios) };
nix::errno::Errno::result(res)?;

// Note: attempting to set the baud rate on a pseudo terminal via this ioctl call will faill
// Note: attempting to set the baud rate on a pseudo terminal via this ioctl call will fail
// with the `ENOTTY` error.
if baud_rate > 0 {
crate::posix::ioctl::iossiospeed(fd, &(baud_rate as libc::speed_t))?;
Expand Down
2 changes: 1 addition & 1 deletion src/posix/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl TTYPort {
///
/// `path` should be the path to a TTY device, e.g., `/dev/ttyS0`.
///
/// Ports are opened in exclusive mode by default. If this is undesireable
/// Ports are opened in exclusive mode by default. If this is undesirable
/// behavior, use `TTYPort::set_exclusive(false)`.
///
/// If the port settings differ from the default settings, characters received
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn test_osx_pty_pair() {
}

// On Mac this should work (in fact used to in b77768a) but now fails. It's not functionality that
// should be required, and the ptys work otherwise. So going to just diable this test instead.
// should be required, and the ptys work otherwise. So going to just disable this test instead.
#[test]
#[cfg_attr(any(target_os = "ios", target_os = "macos"), ignore)]
fn test_ttyport_set_standard_baud() {
Expand Down

0 comments on commit 6000811

Please sign in to comment.