Skip to content

Commit c6bbf5f

Browse files
authored
Merge pull request #70 from ccwanggl/main
fix demo code typo error
2 parents 0aca22a + 4a2e648 commit c6bbf5f

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)