aboutsummaryrefslogtreecommitdiff
path: root/macros/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2020-06-04 15:43:16 +0000
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2020-09-29 11:56:56 +0000
commit487fea45ce15ea375192f72ddb148dda8414873b (patch)
tree7b27790b7108c9cd4ada56c1be6d41c7da9b4b69 /macros/src/lib.rs
parentadff844b8c09e83b4a69fc5b7ac9bd133f09dbbc (diff)
downloadrtic-487fea45ce15ea375192f72ddb148dda8414873b.tar.gz
rtic-487fea45ce15ea375192f72ddb148dda8414873b.tar.zst
rtic-487fea45ce15ea375192f72ddb148dda8414873b.zip
Keep user code as-is within the module, add example
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r--macros/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 2a439e1e..94e7eec6 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -35,7 +35,8 @@ mod tests;
///
/// The items allowed in the module block are specified below:
///
-/// # 1. `struct Resources`
+/// # 1. `#[resources]
+/// struct <resource-name>`
///
/// This structure contains the declaration of all the resources used by the application. Each field
/// in this structure corresponds to a different resource. Each resource may optionally be given an