Skip to content

Commit f2a65b1

Browse files
Restore (and fix) ownership example
1 parent 9c4d00a commit f2a65b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

courses/rust_essentials/130_memory_management/03_ownership.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Ownership Principles
3939
{
4040
let poodle = String::from("ball"); // 'poodle' owns the ball
4141
let yorkie = poodle; // 'poodle' lets go, 'yorkie' picked it up
42-
42+
43+
// println!("{}", poodle); // Error
4344
println!("{}", yorkie);
44-
println!("{}", poodle);
4545
} // 'yorkie' drops the ball, and leaves
4646
// 'poodle' leaves quietly
4747

0 commit comments

Comments
 (0)