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
@@ -1092,12 +1092,12 @@ pub struct SessionChangeOutcome<BlockNumber> {
}
impl<T: Config> Pallet<T> {
/// Called by the initializer to initialize the configuration module.
/// Called by the initializer to initialize the configuration pallet.
pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight {
0
}
/// Called by the initializer to finalize the configuration module.
/// Called by the initializer to finalize the configuration pallet.
pub(crate) fn initializer_finalize() {}
/// Called by the initializer to note that a new session has started.
@@ -1146,7 +1146,7 @@ impl<T: Config> Pallet<T> {
}
/// Forcibly set the active config. This should be used with extreme care, and typically
/// only when enabling parachains runtime modules for the first time on a chain which has
/// only when enabling parachains runtime pallets for the first time on a chain which has
/// been running without them.
pub fn force_set_active_config(config: HostConfiguration<T::BlockNumber>) {
<Self as Store>::ActiveConfig::set(config);