1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-06-23 00:28:46 +02:00

Added filename to top of .rs files

This commit is contained in:
Robert Lugg
2018-02-21 22:09:53 -08:00
parent c4b3252845
commit 7d7a48b17d
48 changed files with 50 additions and 0 deletions

View File

@ -1,3 +1,4 @@
// move_semantics1.rs
// Make me compile! Scroll down for hints :)
pub fn main() {

View File

@ -1,3 +1,4 @@
// move_semantics2.rs
// Make me compile without changing line 9! Scroll down for hints :)
pub fn main() {

View File

@ -1,3 +1,4 @@
// move_semantics3.rs
// Make me compile without adding new lines-- just changing existing lines!
// (no lines with multiple semicolons necessary!)
// Scroll down for hints :)

View File

@ -1,3 +1,4 @@
// move_semantics4.rs
// Refactor this code so that instead of having `vec0` and creating the vector
// in `fn main`, we instead create it within `fn fill_vec` and transfer the
// freshly created vector from fill_vec to its caller. Scroll for hints!