From cd77fb3bb9b99b52fa7cc2168e9c12a314d9c75b Mon Sep 17 00:00:00 2001
From: Liam Aharon <liam.aharon@hotmail.com>
Date: Fri, 12 Apr 2024 16:55:06 +0400
Subject: [PATCH] update doc

---
 substrate/frame/asset-rewards/src/lib.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/substrate/frame/asset-rewards/src/lib.rs b/substrate/frame/asset-rewards/src/lib.rs
index 61d433a7972..4b838d1d586 100644
--- a/substrate/frame/asset-rewards/src/lib.rs
+++ b/substrate/frame/asset-rewards/src/lib.rs
@@ -53,7 +53,7 @@
 //! ## Implementation Notes
 //!
 //! Internal logic functions such as `update_pool_and_staker_rewards` where deliberately written
-//! as pure functions without side-effects.
+//! without side-effects.
 //!
 //! Storage interaction such as reads and writes are instead all performed in the top level
 //! pallet Call method, which while slightly more verbose, makes it easier to understand the
@@ -631,8 +631,8 @@ pub mod pallet {
 		///
 		/// Returns the updated pool and staker info.
 		///
-		/// NOTE: this is a pure function without any side-effects. Side-effects such as storage
-		/// modifications are the resopnsibility of the caller.
+		/// NOTE: this function has no side-effects. Side-effects such as storage modifications are
+		/// the resopnsibility of the caller.
 		pub fn update_pool_and_staker_rewards(
 			pool_info: &PoolInfoFor<T>,
 			staker_info: &PoolStakerInfo<T::Balance>,
@@ -651,8 +651,8 @@ pub mod pallet {
 		///
 		/// Returns the updated pool and staker info.
 		///
-		/// NOTE: this is a pure function without any side-effects. Side-effects such as storage
-		/// modifications are the resopnsibility of the caller.
+		/// NOTE: this function has no side-effects. Side-effects such as storage modifications are
+		/// the resopnsibility of the caller.
 		pub fn update_pool_rewards(
 			pool_info: &PoolInfoFor<T>,
 		) -> Result<PoolInfoFor<T>, DispatchError> {
-- 
GitLab