Merge pull request #928 from hungrymonkey/fix_ref_bug

Fixes a bug in the example code in object type. Ref<MyReference> myre…
This commit is contained in:
Rémi Verschelde 2018-01-03 11:26:37 +01:00 committed by GitHub
commit 97a3b83f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ Declaring them must be done using Ref<> template. For example:
GDCLASS(MyReference, Reference);
};
Ref<MyReference> myref = memnew(MyReference);
Ref<MyReference> myref(memnew(MyReference));
``myref`` is reference counted. It will be freed when no more Ref<>
templates point to it.