Skip to content

Commit 50f90bf

Browse files
authored
Add cargo expand command example (#31)
* Add cargo expand command example It took me some time to figure out how `cargo expand` works. * Use code block for comment
1 parent 88fd4a4 commit 50f90bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jira-wip/src/koans/01_ticket/07_derive.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ mod derive {
1414
/// You can check the code generated by derive macros using `cargo expand`:
1515
/// https://github.com/dtolnay/cargo-expand
1616
///
17+
/// ```sh
18+
/// cargo expand -p jira-wip path_to_enlightenment::derive
19+
/// ```
20+
///
1721
/// PartialEq is not the only trait whose implementation can be derived automatically!
1822
#[derive(PartialEq)]
1923
pub enum Status {

0 commit comments

Comments
 (0)