Skip to content

Commit 3e0d51a

Browse files
committed
minor #11510 reformat code example (OskarStark)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #11510). Discussion ---------- reformat code example <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- b1d8732 reformat code example
2 parents 1a47a51 + b1d8732 commit 3e0d51a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/console/helpers/formatterhelper.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ If you don't want to use suffix at all, just pass an empty string::
108108

109109
$truncatedMessage = $formatter->truncate($message, 7, '!!'); // result: This is!!
110110
$truncatedMessage = $formatter->truncate($message, 7, ''); // result: This is
111+
111112
$truncatedMessage = $formatter->truncate('test', 10);
112-
/* result: test
113-
because length of the "test..." string is shorter than 10 */
113+
// result: test
114+
// because length of the "test..." string is shorter than 10

0 commit comments

Comments
 (0)