Skip to content

Commit 40a2280

Browse files
committed
fix: emo
1 parent 1af08f2 commit 40a2280

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rust/r3/cow.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ fn main() {
1717
// --- 👽 UFO Appears! Time to SUCK the Cow! ---
1818
// The UFO wants to "modify" the cow (i.e., abduct it!).
1919
// If it's a borrowed cow, the UFO needs to make its OWN copy to take!
20-
// (This simulates `to_mut()` forcing a copy for modification)
2120
println!("2. OH NO! A UFO appears! 👽");
21+
22+
// This forcing 👇 a copy for modification
2223
peaceful_cow.to_mut().push_str(" AIEEEE! I'm being beamed up! ⬆️");
24+
2325
println!(" Cow after abduction attempt: {}", peaceful_cow);
2426
println!(" (Since it was borrowed, the UFO made a *copy* to abduct. The original is safe... for now! 🚀)\n");
2527
@@ -35,7 +37,7 @@ fn main() {
3537
// But since this cow is *already owned*, the UFO can just grab *this specific cow*.
3638
// No new copy is needed because it's already "owned" for modification.
3739
println!("4. Another UFO! This one's persistent! 🛸");
38-
owned_cow.to_mut().push_str(" Help! They're taking MY barn too! 😵‍💫");
40+
owned_cow.to_mut().push_str(" Help! They're taking MY barn too! 😱");
3941
println!(" Owned Cow after abduction: {}", owned_cow);
4042
println!(" (It was already owned, so the UFO just took *that* cow. Efficient abduction! 💯)\n");
4143

0 commit comments

Comments
 (0)