mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 14:57:32 -05:00
feat(macros): add hint comments
This commit is contained in:
parent
f99eafc56f
commit
d3a335bc64
5 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue