mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
doc: Use self-closing tags for return and argument
For the time being we don't support writing a description for those, preferring
having all details in the method's description.
Using self-closing tags saves half the lines, and prevents contributors from
thinking that they should write the argument or return documentation there.
(cherry picked from commit 7adf4cc9b5)
This commit is contained in:
@@ -14,24 +14,21 @@
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="init_ref">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Initializes the internal reference counter. Use this only if you really know what you are doing.
|
||||
Returns whether the initialization was successful.
|
||||
</description>
|
||||
</method>
|
||||
<method name="reference">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Increments the internal reference counter. Use this only if you really know what you are doing.
|
||||
Returns [code]true[/code] if the increment was successful, [code]false[/code] otherwise.
|
||||
</description>
|
||||
</method>
|
||||
<method name="unreference">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Decrements the internal reference counter. Use this only if you really know what you are doing.
|
||||
Returns [code]true[/code] if the decrement was successful, [code]false[/code] otherwise.
|
||||
|
||||
Reference in New Issue
Block a user