diff options
author | 2020-04-22 12:10:43 +0000 | |
---|---|---|
committer | 2020-09-25 14:29:34 +0000 | |
commit | 148ad4045e36f3c1d11d2708494c7628b3838df7 (patch) | |
tree | a40302f22f7c1dab684fe8e3b93b2dd55cf781a5 /macros/src | |
parent | 79b62797f549a71531bf5ede39cc6695871b7251 (diff) | |
download | rtic-148ad4045e36f3c1d11d2708494c7628b3838df7.tar.gz rtic-148ad4045e36f3c1d11d2708494c7628b3838df7.tar.zst rtic-148ad4045e36f3c1d11d2708494c7628b3838df7.zip |
Update documentation where const is replaced by mod
Diffstat (limited to 'macros/src')
-rw-r--r-- | macros/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 7b72c7fb..2a439e1e 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -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` /// |