From 496cd59df98620e0e861ed9719321d64f3f636c9 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 15 May 2024 16:51:43 +0400 Subject: Use correct function name in comment --- src/handlers/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index 9f0812d1..2cd39fa2 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -189,7 +189,7 @@ impl SelectionHandler for State { let buf = user_data.clone(); thread::spawn(move || { - // Clear O_NONBLOCK, otherwise io::copy() will stop halfway. + // Clear O_NONBLOCK, otherwise File::write_all() will stop halfway. if let Err(err) = fcntl_setfl(&fd, OFlags::empty()) { warn!("error clearing flags on selection target fd: {err:?}"); } -- cgit