summaryrefslogtreecommitdiffstats
path: root/doc/classes/String.xml
diff options
context:
space:
mode:
authorAndy Maloney <asmaloney@gmail.com>2022-08-17 18:08:09 -0400
committerAndy Maloney <asmaloney@gmail.com>2022-08-17 19:51:17 -0400
commit28e66882e59d51f69cc0b9786033f5570b08d114 (patch)
tree4212bbfba0243fa4fe580e10e8fa8a47031da3eb /doc/classes/String.xml
parentdbd15243621ec595742b18abc4c26f3cb2e00f3d (diff)
downloadredot-engine-28e66882e59d51f69cc0b9786033f5570b08d114.tar.gz
[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.
Diffstat (limited to 'doc/classes/String.xml')
-rw-r--r--doc/classes/String.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index ee508cf70a..f1cd4d72f7 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -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]