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.
This commit is contained in:
@ -56,28 +56,22 @@
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="finish">
|
||||
<return type="PackedByteArray">
|
||||
</return>
|
||||
<return type="PackedByteArray" />
|
||||
<description>
|
||||
Returns the resulting HMAC. If the HMAC failed, an empty [PackedByteArray] is returned.
|
||||
</description>
|
||||
</method>
|
||||
<method name="start">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<argument index="0" name="hash_type" type="int" enum="HashingContext.HashType">
|
||||
</argument>
|
||||
<argument index="1" name="key" type="PackedByteArray">
|
||||
</argument>
|
||||
<return type="int" enum="Error" />
|
||||
<argument index="0" name="hash_type" type="int" enum="HashingContext.HashType" />
|
||||
<argument index="1" name="key" type="PackedByteArray" />
|
||||
<description>
|
||||
Initializes the HMACContext. This method cannot be called again on the same HMACContext until [method finish] has been called.
|
||||
</description>
|
||||
</method>
|
||||
<method name="update">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<argument index="0" name="data" type="PackedByteArray">
|
||||
</argument>
|
||||
<return type="int" enum="Error" />
|
||||
<argument index="0" name="data" type="PackedByteArray" />
|
||||
<description>
|
||||
Updates the message to be HMACed. This can be called multiple times before [method finish] is called to append [code]data[/code] to the message, but cannot be called until [method start] has been called.
|
||||
</description>
|
||||
|
||||
Reference in New Issue
Block a user