Skip to content

Commit 6793fbe

Browse files
authored
Fix UnicodeString::fromCodePoints example
1 parent 9d3a684 commit 6793fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ There are also some specialized constructors::
125125
$foo = ByteString::fromRandom(12);
126126

127127
// CodePointString and UnicodeString can create a string from code points
128-
$foo = UnicodeString::fromCodePoints(0x928, 0x92E, 0x938, 0x94D, 0x924, 0x947);
128+
$foo = (string) UnicodeString::fromCodePoints(0x928, 0x92E, 0x938, 0x94D, 0x924, 0x947);
129129
// $foo = 'नमस्ते'
130130

131131
Methods to Transform String Objects

0 commit comments

Comments
 (0)