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 499d0c5 commit bc2cf46Copy full SHA for bc2cf46
src/idiomatic/leveraging-the-type-system/raii.md
@@ -67,8 +67,8 @@ fn main() -> Result<(), std::io::Error> {
67
Normally, when the `file` variable in `main` goes out of scope (either on
68
return or due to a panic), `drop()` is called automatically.
69
70
- If the file is moved into another function, for example `read_all()`, the
71
- value is dropped when that function returns — not in `main`.
+ If the file is moved into another function, the value is dropped when that
+ function returns — not in `main`.
72
73
In contrast, C++ runs destructors in the original scope even for moved-from
74
values.
0 commit comments