Skip to content

Commit 5507629

Browse files
docs: minor fix in tcgetpgrp and tcsetpgrp doc comments (#2731)
* docs: minor fix in tcgetpgrp and tcsetpgrp doc comments mistakes fixed: * Used GPID instead of PGID in tcgetpgrp comment. * Used 'Get' instead of 'Set' in tcsetpgrp comment. * docs: group process id -> process group id * docs: group process id -> process group id --------- Co-authored-by: SteveLauC <stevelauc@outlook.com>
1 parent 9aea929 commit 5507629

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unistd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ feature! {
353353
/// Get the terminal foreground process group (see
354354
/// [tcgetpgrp(3)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetpgrp.html)).
355355
///
356-
/// Get the group process id (GPID) of the foreground process group on the
356+
/// Get the process group id (PGID) of the foreground process group on the
357357
/// terminal associated to file descriptor (FD).
358358
#[inline]
359359
pub fn tcgetpgrp<F: std::os::fd::AsFd>(fd: F) -> Result<Pid> {
@@ -363,9 +363,9 @@ pub fn tcgetpgrp<F: std::os::fd::AsFd>(fd: F) -> Result<Pid> {
363363
Errno::result(res).map(Pid)
364364
}
365365
/// Set the terminal foreground process group (see
366-
/// [tcgetpgrp(3)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsetpgrp.html)).
366+
/// [tcsetpgrp(3)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsetpgrp.html)).
367367
///
368-
/// Get the group process id (PGID) to the foreground process group on the
368+
/// Set the process group id (PGID) to the foreground process group on the
369369
/// terminal associated to file descriptor (FD).
370370
#[inline]
371371
pub fn tcsetpgrp<F: std::os::fd::AsFd>(fd: F, pgrp: Pid) -> Result<()> {

0 commit comments

Comments
 (0)