diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-12-15 14:28:45 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-20 07:05:04 -0800 |
commit | 68859b9c1897c747263f5844cf87d9f4ac9e6f04 (patch) | |
tree | b98ad444bff2729cd82986e61316c810058ac880 | |
parent | 73ea706da54da4e19a49c78e1189777176f43810 (diff) | |
download | nix-68859b9c1897c747263f5844cf87d9f4ac9e6f04.zip |
Add backticks to types in doccomments
-rw-r--r-- | test/sys/test_termios.rs | 2 | ||||
-rw-r--r-- | test/test.rs | 2 | ||||
-rw-r--r-- | test/test_pty.rs | 2 | ||||
-rw-r--r-- | test/test_ptymaster_drop.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/sys/test_termios.rs b/test/sys/test_termios.rs index a3a948b3..903a5353 100644 --- a/test/sys/test_termios.rs +++ b/test/sys/test_termios.rs @@ -7,7 +7,7 @@ use nix::pty::openpty; use nix::sys::termios::{self, LocalFlags, OutputFlags, Termios, tcgetattr}; use nix::unistd::{read, write, close}; -/// Helper function analogous to std::io::Write::write_all, but for `RawFd`s +/// Helper function analogous to `std::io::Write::write_all`, but for `RawFd`s fn write_all(f: RawFd, buf: &[u8]) { let mut len = 0; while len < buf.len() { diff --git a/test/test.rs b/test/test.rs index 42065694..14cbd7bc 100644 --- a/test/test.rs +++ b/test/test.rs @@ -26,7 +26,7 @@ use std::os::unix::io::RawFd; use std::sync::Mutex; use nix::unistd::read; -/// Helper function analogous to std::io::Read::read_exact, but for `RawFD`s +/// Helper function analogous to `std::io::Read::read_exact`, but for `RawFD`s fn read_exact(f: RawFd, buf: &mut [u8]) { let mut len = 0; while len < buf.len() { diff --git a/test/test_pty.rs b/test/test_pty.rs index 0060f60d..0adcc99f 100644 --- a/test/test_pty.rs +++ b/test/test_pty.rs @@ -10,7 +10,7 @@ use nix::sys::termios::*; use nix::unistd::{write, close}; /// Regression test for Issue #659 -/// This is the correct way to explicitly close a PtyMaster +/// This is the correct way to explicitly close a `PtyMaster` #[test] fn test_explicit_close() { let mut f = { diff --git a/test/test_ptymaster_drop.rs b/test/test_ptymaster_drop.rs index bde8510c..9b59d664 100644 --- a/test/test_ptymaster_drop.rs +++ b/test/test_ptymaster_drop.rs @@ -6,7 +6,7 @@ use nix::unistd::close; use std::os::unix::io::AsRawFd; /// Regression test for Issue #659 -/// PtyMaster should panic rather than double close the file descriptor +/// `PtyMaster` should panic rather than double close the file descriptor /// This must run in its own test process because it deliberately creates a race /// condition. #[test] |