From fcaf32baa912b7e17436fc5999081f7b869a7ab1 Mon Sep 17 00:00:00 2001 From: Marek Kuskowski <50183564+nylonicious@users.noreply.github.com> Date: Wed, 6 Sep 2023 17:20:41 +0200 Subject: [PATCH] io: mention ignoring not present Interest --- tokio/src/io/interest.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokio/src/io/interest.rs b/tokio/src/io/interest.rs index 46d47a61383..30c1b8f512a 100644 --- a/tokio/src/io/interest.rs +++ b/tokio/src/io/interest.rs @@ -169,6 +169,8 @@ impl Interest { /// Remove `Interest` from `self`. /// + /// Interests present in `other` but *not* in `self` are ignored. + /// /// Returns `None` if the set would be empty after removing `Interest`. /// /// # Examples