From ca55e41fe86d4d479886eb2f96a7db27f14677eb Mon Sep 17 00:00:00 2001
From: nova++ <3247833+novaplusplus@users.noreply.github.com>
Date: Thu, 31 Mar 2022 14:20:37 -0400
Subject: [PATCH] Fixing some of my own typos...
(and a little improvement to wording that was bugging me)
(cherry picked from commit 05718796db20145fcc712c7a826e8043e5177905)
---
doc/classes/String.xml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index 4a3df33ed..f280f6263 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -491,7 +491,6 @@
print("1.7".is_valid_float()) # Prints "True"
print("24".is_valid_float()) # Prints "True"
print("7e3".is_valid_float()) # Prints "True"
- print("24".is_valid_float()) # Prints "True"
print("Hello".is_valid_float()) # Prints "False"
[/codeblock]
@@ -765,7 +764,7 @@
- Returns the similarity index ([url=https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient]Sorensen-Dice coefficient[/url]) this string compared to another. 1.0 means totally similar and 0.0 means totally dissimilar.
+ Returns the similarity index ([url=https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient]Sorensen-Dice coefficient[/url]) of this string compared to another. A result of 1.0 means totally similar, while 0.0 means totally dissimilar.
[codeblock]
print("ABC123".similarity("ABC123")) # Prints "1"
print("ABC123".similarity("XYZ456")) # Prints "0"