diff --git a/src/chunk.rs b/src/chunk.rs index 106c253..b2026f0 100644 --- a/src/chunk.rs +++ b/src/chunk.rs @@ -114,7 +114,7 @@ impl Chunks { self.chunks.get_mut(&pos.into()) } - /// Removes all chunks for which `f` returns `true`. + /// Removes all chunks for which `f` returns `false`. /// /// All chunks are visited in an unspecified order. pub fn retain(&mut self, mut f: impl FnMut(ChunkPos, &mut LoadedChunk) -> bool) { diff --git a/src/client.rs b/src/client.rs index 154b883..77d42f1 100644 --- a/src/client.rs +++ b/src/client.rs @@ -78,7 +78,7 @@ impl Clients { self.slab.remove(client.0).map(|c| c.state) } - /// Deletes all clients from the server for which `f` returns `true`. + /// Deletes all clients from the server for which `f` returns `false`. /// /// All clients are visited in an unspecified order. pub fn retain(&mut self, mut f: impl FnMut(ClientId, &mut Client) -> bool) { diff --git a/src/entity.rs b/src/entity.rs index c54d22b..6524a20 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -121,7 +121,7 @@ impl Entities { }) } - /// Removes all entities from the server for which `f` returns `true`. + /// Removes all entities from the server for which `f` returns `false`. /// /// All entities are visited in an unspecified order. pub fn retain(&mut self, mut f: impl FnMut(EntityId, &mut Entity) -> bool) { diff --git a/src/player_list.rs b/src/player_list.rs index 35f0069..f116004 100644 --- a/src/player_list.rs +++ b/src/player_list.rs @@ -175,7 +175,7 @@ impl PlayerList { } } - /// Removes all entries from the player list for which `f` returns `true`. + /// Removes all entries from the player list for which `f` returns `false`. /// /// All entries are visited in an unspecified order. pub fn retain(&mut self, mut f: impl FnMut(Uuid, &mut PlayerListEntry) -> bool) { diff --git a/src/world.rs b/src/world.rs index 2c8e7ca..1f1f3bc 100644 --- a/src/world.rs +++ b/src/world.rs @@ -67,7 +67,7 @@ impl Worlds { self.slab.remove(world.0).is_some() } - /// Removes all worlds from the server for which `f` returns `true`. + /// Removes all worlds from the server for which `f` returns `false`. /// /// All worlds are visited in an unspecified order. pub fn retain(&mut self, mut f: impl FnMut(WorldId, &mut World) -> bool) {