Skip to content

Commit b153b78

Browse files
authored
Merge pull request #294 from ryoqun/task-from-tid-doc
Correct copy-pasted Process::task_from_tid() doc
2 parents a00c3fc + ff0aba4 commit b153b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

procfs/src/process/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ impl Process {
607607
self.task_from_tid(self.pid)
608608
}
609609

610-
/// Return a task for the main thread of this process
610+
/// Return a task for the thread based on a specified TID
611611
pub fn task_from_tid(&self, tid: i32) -> ProcResult<Task> {
612612
let path = PathBuf::from("task").join(tid.to_string());
613613
Task::from_process_at(&self.root, self.fd.as_fd(), path, self.pid, tid)

0 commit comments

Comments
 (0)