Skip to content

Commit 9843523

Browse files
committed
Update example
1 parent bf39904 commit 9843523

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
@@ -314,8 +314,8 @@ Methods to Pad and Trim
314314
u('template.html.twig')->trimSuffix('.twig'); // 'template.html'
315315
u('template.html.twig')->trimSuffix('.html.twig'); // 'template'
316316
// when passing an array of prefix/sufix, only the first one found is trimmed
317-
u('file-image-0001.png')->trimPrefix(['file', 'file-']); // '-image-0001.png'
318-
u('template.html.twig')->trimSuffix(['.twig', '.html']); // 'template.html'
317+
u('file-image-0001.png')->trimPrefix(['file-', 'image-']); // 'image-0001.png'
318+
u('template.html.twig')->trimSuffix(['.twig', '.html']); // 'template.html'
319319

320320
.. versionadded:: 5.4
321321

0 commit comments

Comments
 (0)