Merge pull request #12220 from bclewi/fix/engine_details/architecture/object_class/example-myrefcounted

Fix MyRefCounted example
This commit is contained in:
Matthew
2026-08-03 18:32:06 -04:00
committed by GitHub

View File

@@ -304,7 +304,7 @@ dropped, the object automatically self-destructs.
.. code-block:: cpp
class MyRefCounted: public RefCounted {
GDCLASS(MyReference, RefCounted);
GDCLASS(MyRefCounted, RefCounted);
};
Ref<MyRefCounted> my_ref = memnew(MyRefCounted);