Skip to content

Commit 4455747

Browse files
committed
Merge pull request #91321 from Chaosus/doc_string_reverse
Add a note for `String::reverse` to warn about its implementation
2 parents 506e2bc + d0af890 commit 4455747

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/classes/String.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@
747747
<method name="reverse" qualifiers="const">
748748
<return type="String" />
749749
<description>
750-
Returns the copy of this string in reverse order.
750+
Returns the copy of this string in reverse order. This operation works on unicode codepoints, rather than sequences of codepoints, and may break things like compound letters or emojis.
751751
</description>
752752
</method>
753753
<method name="rfind" qualifiers="const">

doc/classes/StringName.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@
648648
<method name="reverse" qualifiers="const">
649649
<return type="String" />
650650
<description>
651-
Returns the copy of this string in reverse order.
651+
Returns the copy of this string in reverse order. This operation works on unicode codepoints, rather than sequences of codepoints, and may break things like compound letters or emojis.
652652
</description>
653653
</method>
654654
<method name="rfind" qualifiers="const">

0 commit comments

Comments
 (0)