Skip to content

Commit e52a666

Browse files
committed
Minor tweak
1 parent bdc7d4c commit e52a666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/string.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ 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 = (string) UnicodeString::fromCodePoints(0x928, 0x92E, 0x938, 0x94D, 0x924, 0x947);
129-
// $foo = 'नमस्ते'
128+
$foo = UnicodeString::fromCodePoints(0x928, 0x92E, 0x938, 0x94D, 0x924, 0x947);
129+
// equivalent to: $foo = new UnicodeString('नमस्ते');
130130

131131
Methods to Transform String Objects
132132
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)