Skip to content

Commit ff2c66a

Browse files
MustCodeAlCopilot
andauthored
Update src/todo/rust-basics.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 744157b commit ff2c66a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/todo/rust-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ fn main() {
1616
{ // Scope of a variable is within the block it is declared in, which is denoted by brackets
1717
let teacher_age: u32 = 41;
1818
println!("The student is {} and teacher is {}", student_age, teacher_age);
19-
} // when an owning variable goes out of scoped, it will dropped
19+
} // when an owning variable goes out of scope, it will be dropped
2020

21-
// println!("the teacher is {}", teacher_age); // this will not work as teacher_age has been dropped
21+
// println!("the teacher is {}", teacher_age); // this will not work as teacher_age has been dropped
2222
}
2323
```
2424

0 commit comments

Comments
 (0)