few doc fixes

This commit is contained in:
Chaosus 2018-01-17 13:28:59 +03:00
parent 6c46787749
commit fc5cc57d82

View file

@ -189,7 +189,7 @@
<argument index="2" name="max" type="float"> <argument index="2" name="max" type="float">
</argument> </argument>
<description> <description>
Clamps [code]val[/code] and returns a value not less than [code]min[/code] and not more than [code]max[/code]. Clamps [code]value[/code] and returns a value not less than [code]min[/code] and not more than [code]max[/code].
[codeblock] [codeblock]
speed = 1000 speed = 1000
# a is 20 # a is 20
@ -592,7 +592,7 @@
<argument index="0" name="value" type="int"> <argument index="0" name="value" type="int">
</argument> </argument>
<description> <description>
Returns the nearest larger power of 2 for integer [code]val[/code]. Returns the nearest larger power of 2 for integer [code]value[/code].
[codeblock] [codeblock]
nearest_po2(3) # returns 4 nearest_po2(3) # returns 4
nearest_po2(4) # returns 4 nearest_po2(4) # returns 4