Skip to content

Commit 2925a3b

Browse files
committed
Fix builder pattern & fix user text.
1 parent c5117d1 commit 2925a3b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

patterns/builder/color_text_format/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ https://refactoring.guru/design-patterns/builder
88
Using different text formats.
99

1010
### Class diagram
11-
![image](https://user-images.githubusercontent.com/8049534/152780645-4eed27fc-a483-432e-99b0-4a77f2adbd5d.png)
11+
![image](https://user-images.githubusercontent.com/8049534/165747411-75d587d4-aa16-4a14-a16d-52f3fa461a11.png)
1212

1313
### Client code:
1414
```dart
1515
main() {
1616
final reader = ColorTextReader(
17-
text: 'I love looking at the blue sky, '
18-
'eating red apples, '
19-
'sitting on the green grass.',
17+
text: 'I love looking at the blue sky, eating red apples and sitting on the green grass.',
2018
);
2119
2220
final html = reader.convert(HtmlConverter());

0 commit comments

Comments
 (0)