From d596f835015d35ac7a1c63591c08b97ee51163b4 Mon Sep 17 00:00:00 2001 From: olegnn Date: Wed, 24 Jan 2024 00:03:41 +0400 Subject: [PATCH] Comment tweaks --- pallets/core/src/util/batch_update.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pallets/core/src/util/batch_update.rs b/pallets/core/src/util/batch_update.rs index 9debbc6ec..620db6596 100644 --- a/pallets/core/src/util/batch_update.rs +++ b/pallets/core/src/util/batch_update.rs @@ -7,19 +7,19 @@ use sp_runtime::{DispatchError, Either}; /// Checks whether an actor can update an entity. pub trait CanUpdate: Sized { - /// Checks whether underlying keyed update can be applied, i.e. all associated updates are valid. + /// Checks whether the new entity can be added. #[must_use] fn can_add(&self, _new: &Entity) -> bool { false } - /// Checks whether underlying keyed update can be applied, i.e. all associated updates are valid. + /// Checks whether the provided entity can replace the existing one. #[must_use] fn can_replace(&self, _new: &Entity, _current: &Entity) -> bool { false } - /// Checks whether underlying keyed update can be applied, i.e. all associated updates are valid. + /// Checks whether the existing entity can be removed. #[must_use] fn can_remove(&self, _entity: &Entity) -> bool { false @@ -32,7 +32,7 @@ where Entity: Deref, Entity::Target: BoundedKeyValue, { - /// Checks whether underlying keyed update can be applied, i.e. all associated updates are valid. + /// Checks whether the underlying keyed update can be applied, i.e. all associated updates are valid. #[must_use] fn can_update_keyed>(&self, _entity: &Entity, _update: &U) -> bool { false