From b71b7b36bef9cc491c1fedebe52af96a6b285e4f Mon Sep 17 00:00:00 2001 From: Hung-I Wang Date: Thu, 26 Sep 2019 00:05:50 +0800 Subject: [PATCH] fs: update the doc comment of File::sync_data (#1596) --- tokio-fs/src/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-fs/src/file.rs b/tokio-fs/src/file.rs index 828a4adb4..43cfcd0b7 100644 --- a/tokio-fs/src/file.rs +++ b/tokio-fs/src/file.rs @@ -266,14 +266,14 @@ impl File { asyncify(move || std.sync_all()).await } - /// This function is similar to `poll_sync_all`, except that it may not + /// This function is similar to `sync_all`, except that it may not /// synchronize file metadata to the filesystem. /// /// This is intended for use cases that must synchronize content, but don't /// need the metadata on disk. The goal of this method is to reduce disk /// operations. /// - /// Note that some platforms may simply implement this in terms of `poll_sync_all`. + /// Note that some platforms may simply implement this in terms of `sync_all`. /// /// # Examples ///