Skip to content

Commit 17705ec

Browse files
authored
minor fix (#7828)
1 parent be57cc2 commit 17705ec

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/weights.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//! - [`ClassifyDispatch`]: class of the dispatch.
2525
//! - [`PaysFee`]: weather this weight should be translated to fee and deducted upon dispatch.
2626
//!
27-
//! Substrate then bundles then output information of the two traits into [`DispatchInfo`] struct
27+
//! Substrate then bundles the output information of the three traits into [`DispatchInfo`] struct
2828
//! and provides it by implementing the [`GetDispatchInfo`] for all `Call` both inner and outer call
2929
//! types.
3030
//!
@@ -91,10 +91,11 @@
9191
//! # fn main() {}
9292
//! ```
9393
//!
94-
//! ### 2. Define weights as a function of input arguments using `FunctionOf` tuple struct. This struct works
95-
//! in a similar manner as above. 3 items must be provided and each can be either a fixed value or a
96-
//! function/closure with the same parameters list as the dispatchable function itself, wrapper in a
97-
//! tuple.
94+
//! ### 2. Define weights as a function of input arguments using `FunctionOf` tuple struct.
95+
//!
96+
//! This struct works in a similar manner as above. 3 items must be provided and each can be either
97+
//! a fixed value or a function/closure with the same parameters list as the dispatchable function
98+
//! itself, wrapper in a tuple.
9899
//!
99100
//! Using this only makes sense if you want to use a function for at least one of the elements. If
100101
//! all 3 are static values, providing a raw tuple is easier.

0 commit comments

Comments
 (0)