We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 744157b commit ff2c66aCopy full SHA for ff2c66a
1 file changed
src/todo/rust-basics.md
@@ -16,9 +16,9 @@ fn main() {
16
{ // Scope of a variable is within the block it is declared in, which is denoted by brackets
17
let teacher_age: u32 = 41;
18
println!("The student is {} and teacher is {}", student_age, teacher_age);
19
- } // when an owning variable goes out of scoped, it will dropped
+ } // when an owning variable goes out of scope, it will be dropped
20
21
- // println!("the teacher is {}", teacher_age); // this will not work as teacher_age has been dropped
+ // println!("the teacher is {}", teacher_age); // this will not work as teacher_age has been dropped
22
}
23
```
24
0 commit comments