Skip to content

Commit 4a2e648

Browse files
committedNov 28, 2024
fix demo code typo error
1 parent 97c100c commit 4a2e648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/cpp_tricks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ struct RAIIHandle {
320320
}
321321
RAIIHandle(RAIIHandle const &) = delete;
322322
RAIIHandle &operator=(RAIIHandle const &) = delete;
323-
RAIIHandle() {
323+
~RAIIHandle() {
324324
DeleteObject(handle);
325325
}
326326
};

0 commit comments

Comments
 (0)