Skip to content

Commit ce400a9

Browse files
committed
Merge pull request #106613 from Calinou/doc-string-subsequence-contains
Clarify `String.is_subsequence_of()` working differently from `String.contains()`
2 parents 63070dd + f69d2ed commit ce400a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/classes/String.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
<return type="bool" />
441441
<param index="0" name="text" type="String" />
442442
<description>
443-
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order.
443+
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].
444444
[codeblock]
445445
var text = "Wow, incredible!"
446446

@@ -455,7 +455,7 @@
455455
<return type="bool" />
456456
<param index="0" name="text" type="String" />
457457
<description>
458-
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b].
458+
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].
459459
</description>
460460
</method>
461461
<method name="is_valid_ascii_identifier" qualifiers="const">

doc/classes/StringName.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@
415415
<return type="bool" />
416416
<param index="0" name="text" type="String" />
417417
<description>
418-
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order.
418+
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].
419419
[codeblock]
420420
var text = "Wow, incredible!"
421421

@@ -430,7 +430,7 @@
430430
<return type="bool" />
431431
<param index="0" name="text" type="String" />
432432
<description>
433-
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b].
433+
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].
434434
</description>
435435
</method>
436436
<method name="is_valid_ascii_identifier" qualifiers="const">

0 commit comments

Comments
 (0)