Skip to content

Commit d3a335b

Browse files
committed
feat(macros): add hint comments
1 parent f99eafc commit d3a335b

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

exercises/macros/macros1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// macros1.rs
2-
// Make me compile! Execute `rustlings hint macros1` for hints :)
2+
// Execute `rustlings hint macros1` or use the `hint` watch subcommand for a hint.
33

44
// I AM NOT DONE
55

exercises/macros/macros2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// macros2.rs
2-
// Make me compile! Execute `rustlings hint macros2` for hints :)
2+
// Execute `rustlings hint macros2` or use the `hint` watch subcommand for a hint.
33

44
// I AM NOT DONE
55

exercises/macros/macros3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// macros3.rs
22
// Make me compile, without taking the macro out of the module!
3-
// Execute `rustlings hint macros3` for hints :)
3+
// Execute `rustlings hint macros3` or use the `hint` watch subcommand for a hint.
44

55
// I AM NOT DONE
66

exercises/macros/macros4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// macros4.rs
2-
// Make me compile! Execute `rustlings hint macros4` for hints :)
2+
// Execute `rustlings hint macros4` or use the `hint` watch subcommand for a hint.
33

44
// I AM NOT DONE
55

info.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,12 @@ mode = "compile"
958958
hint = """
959959
You only need to add a single character to make this compile.
960960
The way macros are written, it wants to see something between each
961-
"macro arm", so it can separate them."""
961+
"macro arm", so it can separate them.
962+
963+
That's all the macro exercises we have in here, but it's barely even
964+
scratching the surface of what you can do with Rust's macros. For a more
965+
thorough introduction, you can have a read through the little book of Rust
966+
macros: https://veykril.github.io/tlborm/"""
962967

963968
# TEST 4
964969

0 commit comments

Comments
 (0)