Skip to content

Commit 2c2d86d

Browse files
committed
Fix formatting
1 parent 0a024e8 commit 2c2d86d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/content/web/get-started.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -105,29 +105,29 @@ Let's customize the app you just created.
105105
It creates a new `LIElement` containing the specified `String`.
106106

107107
```dart
108-
Iterable<String> thingsTodo() sync* { ... }
108+
Iterable<String> thingsTodo() sync* { /* ... */ }
109109
110110
[!HTMLLIElement newLI(String itemText) =>!]
111111
[!(document.createElement('li') as HTMLLIElement)..text = itemText;!]
112112
113-
void main() { ... }
113+
void main() { /* ... */ }
114114
```
115115

116-
3. In the `main()` function, append content to the `output` element using
117-
`thingsTodo()`:
116+
3. In the `main()` function, append content to the `output` element
117+
using `appendChild` and the values from `thingsTodo()`:
118118

119119
```dart
120-
Iterable<String> thingsTodo() sync* { ... }
120+
Iterable<String> thingsTodo() sync* { /* ... */ }
121121
122122
HTMLLIElement newLI(String itemText) =>
123-
(document.createElement('li') as HTMLLIElement)..text = itemText;
123+
(document.createElement('li') as HTMLLIElement)..text = itemText;
124124
125125
void main() {
126126
final output = querySelector('#output');
127127
[!for (final item in thingsTodo()) {!]
128128
[!output?.appendChild(newLI(item));!]
129129
[!}!]
130-
}
130+
}
131131
```
132132

133133
4. Save your changes.

0 commit comments

Comments
 (0)