summaryrefslogtreecommitdiff
path: root/src/pty.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2021-12-26 20:14:50 -0600
committerRyan Zoeller <rtzoeller@rtzoeller.com>2021-12-26 20:14:50 -0600
commit57f41a8898e80f220d231136e26193db77388c03 (patch)
tree8a064d923e45614a21b8a8cb9bd3029b9fdfca87 /src/pty.rs
parenta392647f450f88bf4a162135712ea023e8da3b1a (diff)
downloadnix-57f41a8898e80f220d231136e26193db77388c03.zip
Fix typos
Diffstat (limited to 'src/pty.rs')
-rw-r--r--src/pty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pty.rs b/src/pty.rs
index a104a69c..ae304d83 100644
--- a/src/pty.rs
+++ b/src/pty.rs
@@ -112,7 +112,7 @@ pub fn grantpt(fd: &PtyMaster) -> Result<()> {
/// Open a pseudoterminal device (see
/// [`posix_openpt(3)`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_openpt.html))
///
-/// `posix_openpt()` returns a file descriptor to an existing unused pseuterminal master device.
+/// `posix_openpt()` returns a file descriptor to an existing unused pseudoterminal master device.
///
/// # Examples
///
@@ -214,7 +214,7 @@ pub fn ptsname_r(fd: &PtyMaster) -> Result<String> {
///
/// `unlockpt()` unlocks the slave pseudoterminal device corresponding to the master pseudoterminal
/// referred to by `fd`. This must be called before trying to open the slave side of a
-/// pseuoterminal.
+/// pseudoterminal.
#[inline]
pub fn unlockpt(fd: &PtyMaster) -> Result<()> {
if unsafe { libc::unlockpt(fd.as_raw_fd()) } < 0 {