mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-30 15:34:33 +01:00
Update documentation where const is replaced by mod
This commit is contained in:
parent
79b62797f5
commit
148ad4045e
1 changed files with 2 additions and 3 deletions
|
@ -15,8 +15,7 @@ mod tests;
|
|||
|
||||
/// Attribute used to declare a RTIC application
|
||||
///
|
||||
/// This attribute must be applied to a `const` item of type `()`. The `const` item is effectively
|
||||
/// used as a `mod` item: its value must be a block that contains items commonly found in modules,
|
||||
/// This attribute must be applied to a module block that contains items commonly found in modules,
|
||||
/// like functions and `static` variables.
|
||||
///
|
||||
/// The `app` attribute has one mandatory argument:
|
||||
|
@ -34,7 +33,7 @@ mod tests;
|
|||
/// - `monotonic = <path>`. This is a path to a zero-sized structure (e.g. `struct Foo;`) that
|
||||
/// implements the `Monotonic` trait. This argument must be provided to use the `schedule` API.
|
||||
///
|
||||
/// The items allowed in the block value of the `const` item are specified below:
|
||||
/// The items allowed in the module block are specified below:
|
||||
///
|
||||
/// # 1. `struct Resources`
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue