summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 466ee55..b968964 100644
--- a/README.md
+++ b/README.md
@@ -567,8 +567,8 @@ fn main() {
Implement `Drop` to run cleanup logic automatically.
```zc
impl Drop for MyStruct {
- fn drop(mut self) {
- free(self.data);
+ fn drop(self) {
+ self.free();
}
}
```