Skip to content

Commit 4a2e648

Browse files
committed
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

Lines changed: 1 addition & 1 deletion
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)