mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
src: fix typo in src code guide
PR-URL: https://github.com/nodejs/node/pull/37956 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
This commit is contained in:
1 parent
b7e7384109
commit
bd87e195ed
1 file changed
+1
-1
+1
-1
@@ -812,7 +812,7 @@ reference to its associated JavaScript object. This can be useful when one
|
||||
`BaseObject` refers to another `BaseObject` and wants to make sure it stays
|
||||
alive during the lifetime of that reference.
|
||||
|
||||
A `BaseObject` can be “detached” throught the `BaseObject::Detach()` method.
|
||||
A `BaseObject` can be “detached” through the `BaseObject::Detach()` method.
|
||||
In this case, it will be deleted once the last `BaseObjectPtr` referring to
|
||||
it is destroyed. There must be at least one such pointer when `Detach()` is
|
||||
called. This can be useful when one `BaseObject` fully owns another
|
||||
|
||||
Reference in new issue
Block a user