mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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:
parent
26eb062a9b
commit
24302c9fe9
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user