doc: fix typo in CppgcMixin docs

PR-URL: https://github.com/nodejs/node/pull/54762
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Joyee Cheung 2024-09-05 19:45:26 +02:00 committed by GitHub
parent 26eb062a9b
commit 24302c9fe9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1013,7 +1013,7 @@ A `cppgc`-managed native wrapper should look something like this:
// CPPGC_MIXIN is a helper macro for inheriting from cppgc::GarbageCollected,
// cppgc::NameProvider and public CppgcMixin. Per cppgc rules, it must be
// placed at the left-most position in the class hierarchy.
class MyWrap final : CPPGC_MIXIN(ContextifyScript) {
class MyWrap final : CPPGC_MIXIN(MyWrap) {
public:
SET_CPPGC_NAME(MyWrap) // Sets the heap snapshot name to "Node / MyWrap"