Keep user code as-is within the module, add example

This commit is contained in:
Henrik Tjäder 2020-06-04 15:43:16 +00:00
parent adff844b8c
commit 487fea45ce
3 changed files with 68 additions and 1 deletions

View file

@ -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