<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rustlings.git/exercises/move_semantics/move_semantics5.rs, branch main</title>
<subtitle>Rustlings course
</subtitle>
<id>http://homelab.tail42a6a2.ts.net/rustlings.git/atom?h=main</id>
<link rel='self' href='http://homelab.tail42a6a2.ts.net/rustlings.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/'/>
<updated>2023-10-16T11:37:12Z</updated>
<entry>
<title>Update Exercises Directory Names to Reflect Order</title>
<updated>2023-10-16T11:37:12Z</updated>
<author>
<name>Adam Brewer</name>
<email>adamhb321@gmail.com</email>
</author>
<published>2023-10-16T11:37:12Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=64d95837e9813541cf5b357de13865ce687ae98d'/>
<id>urn:sha1:64d95837e9813541cf5b357de13865ce687ae98d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make move_semantics5 a test</title>
<updated>2023-08-26T22:48:19Z</updated>
<author>
<name>mo8it</name>
<email>mo8it@proton.me</email>
</author>
<published>2023-08-26T22:46:48Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=64224d3918820ebcdd2ee23fe2e7678f94573345'/>
<id>urn:sha1:64224d3918820ebcdd2ee23fe2e7678f94573345</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docs: cleanup the explanation paragraphs at the start of each exercise.</title>
<updated>2023-05-29T17:41:51Z</updated>
<author>
<name>Robert Fry</name>
<email>inbox@robertfry.xyz</email>
</author>
<published>2023-05-29T17:39:08Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=7eef5d15eef780f93e22b1b4e0185f7708219ea0'/>
<id>urn:sha1:7eef5d15eef780f93e22b1b4e0185f7708219ea0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(move_semantics): finish updating comments</title>
<updated>2022-07-12T13:43:26Z</updated>
<author>
<name>mokou</name>
<email>mokou@fastmail.com</email>
</author>
<published>2022-07-12T13:43:26Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=2e62505143a726c610a60cc8f11fbb4b0449ba8f'/>
<id>urn:sha1:2e62505143a726c610a60cc8f11fbb4b0449ba8f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(move_semantics5): correct typo (#857)</title>
<updated>2021-09-30T08:18:36Z</updated>
<author>
<name>Fredrik Enestad</name>
<email>fredrik@enestad.com</email>
</author>
<published>2021-09-30T08:18:36Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=46c28d5cef3d8446b5a356b19d8dbc725f91a3a0'/>
<id>urn:sha1:46c28d5cef3d8446b5a356b19d8dbc725f91a3a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(move_semantics5): change &amp;mut *y to &amp;mut x (#814)</title>
<updated>2021-09-25T08:52:18Z</updated>
<author>
<name>frogtd</name>
<email>31412003+frogtd@users.noreply.github.com</email>
</author>
<published>2021-09-25T08:52:18Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=d75759e829fdcd64ef071cf4b6eae2a011a7718b'/>
<id>urn:sha1:d75759e829fdcd64ef071cf4b6eae2a011a7718b</id>
<content type='text'>
Instead of having to explain why 
```rs
let mut x = 100; 
let y = &amp;mut x;
let mut z_owned = *y;
let z = &amp;mut z_owned;
*y += 100;
*z += 1000;
```
and 
```rs
let mut x = 100; 
let y = &amp;mut x;
let z = &amp;mut *y;
*y += 100;
*z += 1000;
```
are different, you still get the point across about having only one mutable reference.
As it stands, this exercise does too much (dereferencing and having only one mutable reference), and by doing so confuses people.

Example of someone being confused by this:
&lt;https://discord.com/channels/273534239310479360/273541522815713281/872689531428692040&gt;</content>
</entry>
<entry>
<title>fix(move_semantics5): Clarify instructions</title>
<updated>2021-07-29T10:37:15Z</updated>
<author>
<name>ana</name>
<email>ana@ana.st</email>
</author>
<published>2021-07-29T10:37:15Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=df25684cb79f8413915e00b5efef29369849cef1'/>
<id>urn:sha1:df25684cb79f8413915e00b5efef29369849cef1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: move_semantics5 hints</title>
<updated>2021-05-23T03:09:58Z</updated>
<author>
<name>Taylor Yu</name>
<email>tlyu@mit.edu</email>
</author>
<published>2021-05-23T03:09:58Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=1b85828548f46f58b622b5e0c00f8c989f928807'/>
<id>urn:sha1:1b85828548f46f58b622b5e0c00f8c989f928807</id>
<content type='text'>
Improve the hints for move_semantics5, as well as the explanatory
comments in the code.

Previously, it was not clear what possible changes were allowed.
It seems that reordering the statements might be the intended solution.
The previous comment about not "adding newlines" doesn't make sense,
so treating it as "adding new lines" makes it more clear.
</content>
</entry>
<entry>
<title>feat: Add move_semantics5 exercise. (#746)</title>
<updated>2021-05-17T12:10:40Z</updated>
<author>
<name>Sateesh</name>
<email>sateeshkumarb@yahoo.com</email>
</author>
<published>2021-05-17T12:10:40Z</published>
<link rel='alternate' type='text/html' href='http://homelab.tail42a6a2.ts.net/rustlings.git/commit/?id=399ab328d8d407265c09563aa4ef4534b2503ff2'/>
<id>urn:sha1:399ab328d8d407265c09563aa4ef4534b2503ff2</id>
<content type='text'>
* feat: Add move_semantics5 exercise.

* feat: Add option3 exercise

* Address review comments. Fix typos, sentence formatting.

* Remove unwanted newline.

* Address review comments: make comment inline, fix format in print.</content>
</entry>
</feed>
