mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 23:04:17 -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
|
// 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
|
// I AM NOT DONE
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// macros2.rs
|
// 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
|
// I AM NOT DONE
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// macros3.rs
|
// macros3.rs
|
||||||
// Make me compile, without taking the macro out of the module!
|
// 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
|
// I AM NOT DONE
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// macros4.rs
|
// 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
|
// I AM NOT DONE
|
||||||
|
|
||||||
|
|
|
@ -958,7 +958,12 @@ mode = "compile"
|
||||||
hint = """
|
hint = """
|
||||||
You only need to add a single character to make this compile.
|
You only need to add a single character to make this compile.
|
||||||
The way macros are written, it wants to see something between each
|
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
|
# TEST 4
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue