Skip to content

Commit bb4105a

Browse files
committed
Improve OpenptyResult documentation
1 parent 5d29650 commit bb4105a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pty.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ use {Errno, Result, Error, fcntl};
1414

1515
/// Representation of a master/slave pty pair
1616
///
17-
/// This is returned by `openpty`
17+
/// This is returned by `openpty`. Note that this type does *not* implement `Drop`, so the user
18+
/// must manually close the file descriptors.
1819
pub struct OpenptyResult {
1920
pub master: RawFd,
2021
pub slave: RawFd,

0 commit comments

Comments
 (0)