From f69d2eda808ccfef6e7f016554a67b9172fa5939 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 20 May 2025 00:59:31 +0200 Subject: [PATCH] Clarify `String.is_subsequence_of()` working differently from `String.contains()` `is_subsequence_of()` has very different behavior from `contains()`. --- doc/classes/String.xml | 4 ++-- doc/classes/StringName.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/classes/String.xml b/doc/classes/String.xml index d1f6e6e8ea8..8cd2250677e 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -440,7 +440,7 @@ - Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order. + Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order. This is not the same as [method contains]. [codeblock] var text = "Wow, incredible!" @@ -455,7 +455,7 @@ - Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b]. + Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b]. This is not the same as [method containsn]. diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml index 4a84e10cb7a..0b8c10a5a71 100644 --- a/doc/classes/StringName.xml +++ b/doc/classes/StringName.xml @@ -415,7 +415,7 @@ - Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order. + Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order. This is not the same as [method contains]. [codeblock] var text = "Wow, incredible!" @@ -430,7 +430,7 @@ - Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b]. + Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b]. This is not the same as [method containsn].