mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[doc] Fix grammar in class docs: amount vs. number
Number is used for things that can be counted (discrete items - think "integer" in this context). Also fixes a couple of awkward phrases.
This commit is contained in:
@@ -440,7 +440,7 @@
|
||||
<method name="length" qualifiers="const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Returns the string's amount of characters.
|
||||
Returns the number of characters in the string.
|
||||
</description>
|
||||
</method>
|
||||
<method name="lpad" qualifiers="const">
|
||||
@@ -522,7 +522,7 @@
|
||||
# Last digit will be rounded up here, which reduces total digit count since
|
||||
# trailing zeros are removed:
|
||||
String.num(42.129999, 5) # "42.13"
|
||||
# If `decimals` is not specified, the total amount of significant digits is 14:
|
||||
# If `decimals` is not specified, the total number of significant digits is 14:
|
||||
String.num(-0.0000012345432123454321) # "-0.00000123454321"
|
||||
String.num(-10000.0000012345432123454321) # "-10000.0000012345"
|
||||
[/codeblock]
|
||||
|
||||
Reference in New Issue
Block a user