mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 07:46:29 +00:00
Merge pull request #1385 from alexwh/patch-1
chore: update move_semantics4.rs' hint
This commit is contained in:
commit
f86fa1e909
1 changed files with 1 additions and 2 deletions
|
@ -325,8 +325,7 @@ doing one step and then fixing the compiler errors that result!
|
||||||
So the end goal is to:
|
So the end goal is to:
|
||||||
- get rid of the first line in main that creates the new vector
|
- get rid of the first line in main that creates the new vector
|
||||||
- so then `vec0` doesn't exist, so we can't pass it to `fill_vec`
|
- so then `vec0` doesn't exist, so we can't pass it to `fill_vec`
|
||||||
- we don't want to pass anything to `fill_vec`, so its signature should
|
- `fill_vec` has had its signature changed, which our call should reflect
|
||||||
reflect that it does not take any arguments
|
|
||||||
- since we're not creating a new vec in `main` anymore, we need to create
|
- since we're not creating a new vec in `main` anymore, we need to create
|
||||||
a new vec in `fill_vec`, similarly to the way we did in `main`"""
|
a new vec in `fill_vec`, similarly to the way we did in `main`"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue