Skip to content

Commit 4a52c6e

Browse files
committed
[String] Fix s() namespace
1 parent 17a0fe7 commit 4a52c6e

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
@@ -118,7 +118,7 @@ to make your code more concise::
118118

119119
// the s() function creates a byte string or Unicode string
120120
// depending on the given contents
121-
use function Symfony\Component\String\u;
121+
use function Symfony\Component\String\s;
122122

123123
// creates a ByteString object
124124
$foo = s('\xfe\xff');

0 commit comments

Comments
 (0)