about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMeng Xiangzhuo <aumo@foxmail.com>2023-08-29 05:37:25 +0800
committerMeng Xiangzhuo <aumo@foxmail.com>2023-08-29 05:37:25 +0800
commit3431fb7b61f028bc0d50565d1ea90d83af1e2b40 (patch)
tree459288c58fa85275b994736e226c6dfc687ad4ad
parent93dd62024113acb782812189d01e8e239da150e7 (diff)
downloadrust-3431fb7b61f028bc0d50565d1ea90d83af1e2b40.tar.gz
rust-3431fb7b61f028bc0d50565d1ea90d83af1e2b40.zip
fix a doc typo at std::os::unix::fs::FileExt::write_at
-rw-r--r--library/std/src/os/unix/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/unix/fs.rs b/library/std/src/os/unix/fs.rs
index 029de8fbf76..f8168c927c4 100644
--- a/library/std/src/os/unix/fs.rs
+++ b/library/std/src/os/unix/fs.rs
@@ -155,7 +155,7 @@ pub trait FileExt {
     /// flag fail to respect the offset parameter, always appending to the end
     /// of the file instead.
     ///
-    /// It is possible to inadvertantly set this flag, like in the example below.
+    /// It is possible to inadvertently set this flag, like in the example below.
     /// Therefore, it is important to be vigilant while changing options to mitigate
     /// unexpected behaviour.
     ///