summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorexdx <dsover@redhat.com>2022-07-12 15:26:55 +0200
committermokou <mokou@fastmail.com>2022-07-12 15:26:55 +0200
commit16ff57bbffe0ab86d9ef880d45486d6625cc9223 (patch)
tree1bbbac351eef79646714c8fed245442b3677e658 /info.toml
parentbb0cf92b8b6f0a9db4be92ff5ffc4c507f2847ba (diff)
fix(move_semantics2): clarify referencing
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/info.toml b/info.toml
index a7c46eb..899d4c1 100644
--- a/info.toml
+++ b/info.toml
@@ -300,7 +300,7 @@ There's a few ways to fix this, try them all if you want:
2. Make `fill_vec` borrow its argument instead of taking ownership of it,
and then copy the data within the function in order to return an owned
`Vec<i32>`
-3. Make `fill_vec` *mutably* borrow its argument (which will need to be
+3. Make `fill_vec` *mutably* borrow a reference to its argument (which will need to be
mutable), modify it directly, then not return anything. Then you can get rid
of `vec1` entirely -- note that this will change what gets printed by the
first `println!`"""