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:
Tobias Nießen authored and Ruy Adorno committed 2021-03-29 20:17:19 -04:00
1 parent b7e7384109
commit bd87e195ed
1 file changed
+1 -1
+1 -1
View File
@@ -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