chore: fix copy&paste and tidy comments (#4646)

As was brought up in [here][og], we have some copy&paste comments. I
fixed them and also took liberty of fixing some other places.
Specifically, those that say "module" instead of contemporary "pallet".

[og]:
https://github.com/paritytech/polkadot/pull/4603#discussion_r776971291
This commit is contained in:
Sergei Shulepov
2022-01-01 18:13:17 +01:00
committed by GitHub
parent 49722d2846
commit 78b3dc214a
4 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -220,12 +220,12 @@ pub mod pallet {
}
impl<T: Config> Pallet<T> {
/// Called by the initializer to initialize the scheduler module.
/// Called by the initializer to initialize the scheduler pallet.
pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight {
0
}
/// Called by the initializer to finalize the scheduler module.
/// Called by the initializer to finalize the scheduler pallet.
pub(crate) fn initializer_finalize() {}
/// Called by the initializer to note that a new session has started.
@@ -818,7 +818,7 @@ mod tests {
Paras::initializer_initialize(b + 1);
Scheduler::initializer_initialize(b + 1);
// In the real runt;me this is expected to be called by the `InclusionInherent` module.
// In the real runtime this is expected to be called by the `InclusionInherent` pallet.
Scheduler::clear();
Scheduler::schedule(Vec::new(), b + 1);
}