mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 21:29:18 +00:00
providing function with an argument
This commit is contained in:
parent
7b07e89316
commit
cdbf513840
@ -1,7 +1,7 @@
|
|||||||
// functions2.rs
|
// functions2.rs
|
||||||
// Execute `rustlings hint functions2` or use the `hint` watch subcommand for a hint.
|
// Execute `rustlings hint functions2` or use the `hint` watch subcommand for a hint.
|
||||||
|
|
||||||
// I AM NOT DONE
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
call_me(3);
|
call_me(3);
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
call_me();
|
call_me(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn call_me(num: u32) {
|
fn call_me(num: u32) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user