summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-01-30 05:23:38 +0000
committerGitHub <noreply@github.com>2022-01-30 05:23:38 +0000
commit2143ffe90dbe6821f59d8a775853bcc4cba4dcca (patch)
treed807cbf7b29089c3370d1d3ff2876f54010ca65f /src/sys
parent5cd01a1fd7417ee6e16636443965c0a197ff2843 (diff)
parent3b00f37bfbb2947bce628815663924844661323f (diff)
downloadnix-2143ffe90dbe6821f59d8a775853bcc4cba4dcca.zip
Merge #1651
1651: Fix typo in pread docs r=rtzoeller a=rtzoeller Fixes #1648. Co-authored-by: Ryan Zoeller <rtzoeller@rtzoeller.com>
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/uio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/uio.rs b/src/sys/uio.rs
index a1fc8e5f..d9b3bb16 100644
--- a/src/sys/uio.rs
+++ b/src/sys/uio.rs
@@ -76,7 +76,7 @@ pub fn pwrite(fd: RawFd, buf: &[u8], offset: off_t) -> Result<usize> {
Errno::result(res).map(|r| r as usize)
}
-/// Low-level write to a file, with specified offset.
+/// Low-level read from a file, with specified offset.
///
/// See also [pread(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/pread.html)
// TODO: move to unistd