diff options
| author | mokou <mokou@fastmail.com> | 2022-07-15 12:05:26 +0200 |
|---|---|---|
| committer | mokou <mokou@fastmail.com> | 2022-07-15 12:05:26 +0200 |
| commit | d3a335bc64234738adb9d7514a5930bd6f9d38ee (patch) | |
| tree | 60937a2bb0ae7bd2098a43209a72a5d1e8d7f0d3 | |
| parent | f99eafc56f49852d4b801b5c4cfedf47ef4968ae (diff) | |
feat(macros): add hint comments
| -rw-r--r-- | exercises/macros/macros1.rs | 2 | ||||
| -rw-r--r-- | exercises/macros/macros2.rs | 2 | ||||
| -rw-r--r-- | exercises/macros/macros3.rs | 2 | ||||
| -rw-r--r-- | exercises/macros/macros4.rs | 2 | ||||
| -rw-r--r-- | info.toml | 7 |
5 files changed, 10 insertions, 5 deletions
diff --git a/exercises/macros/macros1.rs b/exercises/macros/macros1.rs index ed0dac8..634d0a7 100644 --- a/exercises/macros/macros1.rs +++ b/exercises/macros/macros1.rs @@ -1,5 +1,5 @@ // macros1.rs -// Make me compile! Execute `rustlings hint macros1` for hints :) +// Execute `rustlings hint macros1` or use the `hint` watch subcommand for a hint. // I AM NOT DONE diff --git a/exercises/macros/macros2.rs b/exercises/macros/macros2.rs index d0be123..f6092ca 100644 --- a/exercises/macros/macros2.rs +++ b/exercises/macros/macros2.rs @@ -1,5 +1,5 @@ // macros2.rs -// Make me compile! Execute `rustlings hint macros2` for hints :) +// Execute `rustlings hint macros2` or use the `hint` watch subcommand for a hint. // I AM NOT DONE diff --git a/exercises/macros/macros3.rs b/exercises/macros/macros3.rs index 93a4311..106f1c6 100644 --- a/exercises/macros/macros3.rs +++ b/exercises/macros/macros3.rs @@ -1,6 +1,6 @@ // macros3.rs // Make me compile, without taking the macro out of the module! -// Execute `rustlings hint macros3` for hints :) +// Execute `rustlings hint macros3` or use the `hint` watch subcommand for a hint. // I AM NOT DONE diff --git a/exercises/macros/macros4.rs b/exercises/macros/macros4.rs index 3a74807..c1fc5e8 100644 --- a/exercises/macros/macros4.rs +++ b/exercises/macros/macros4.rs @@ -1,5 +1,5 @@ // macros4.rs -// Make me compile! Execute `rustlings hint macros4` for hints :) +// Execute `rustlings hint macros4` or use the `hint` watch subcommand for a hint. // I AM NOT DONE @@ -958,7 +958,12 @@ mode = "compile" hint = """ You only need to add a single character to make this compile. The way macros are written, it wants to see something between each -"macro arm", so it can separate them.""" +"macro arm", so it can separate them. + +That's all the macro exercises we have in here, but it's barely even +scratching the surface of what you can do with Rust's macros. For a more +thorough introduction, you can have a read through the little book of Rust +macros: https://veykril.github.io/tlborm/""" # TEST 4 |
