From c731b874f1d7a1a3cf9c0ae0595249718b24fa9b Mon Sep 17 00:00:00 2001 From: gupnik Date: Fri, 3 May 2024 15:04:01 +0200 Subject: [PATCH] Update substrate/primitives/runtime/src/type_with_default.rs Co-authored-by: Oliver Tale-Yazdi --- substrate/primitives/runtime/src/type_with_default.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/substrate/primitives/runtime/src/type_with_default.rs b/substrate/primitives/runtime/src/type_with_default.rs index 24a5f686e167..1465393640dc 100644 --- a/substrate/primitives/runtime/src/type_with_default.rs +++ b/substrate/primitives/runtime/src/type_with_default.rs @@ -38,6 +38,8 @@ use sp_core::Get; use serde::{Deserialize, Serialize}; /// A type that wraps another type and provides a default value. +/// +/// Passes through arithmetical and many other operations to the inner value. #[derive(Encode, Decode, TypeInfo, Debug, MaxEncodedLen)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct TypeWithDefault>(T, PhantomData);