Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Better docs.
  • Loading branch information
kianenigma committed Nov 16, 2020
commit 2fcf32e03c197425236b62d83d57173c4dca251b
10 changes: 10 additions & 0 deletions frame/support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,16 @@ macro_rules! parameter_types {
/// MY_CONFIG.with(|v| *v.borrow_mut() = 1);
/// // Or use the setter function provided:
/// MyConfig::set(2);
///
/// // Can be passed as `Get<_>` as well.
/// trait Config {
/// type Parameter: Get<u32>;
/// }
///
/// struct Runtime;
/// impl Config for Runtime {
/// type Parameter = MyConfig;
/// }
/// ```
#[macro_export]
#[cfg(feature = "std")]
Expand Down