Skip to content

Commit 01992d4

Browse files
committed
Update README to avoid confusion about when .render() needs to be called
1 parent aae4d99 commit 01992d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ This library is heavily inspired by [kotlinx.html](https://github.com/Kotlin/kot
1313
You can define HTML elements independently from an HTML document. The following code:
1414

1515
```kotlin
16-
p("A paragraph").render()
16+
p("A paragraph")
1717
```
1818

19-
will render the following HTML:
19+
will render the following HTML when `.render()` is called:
2020

2121
```html
2222
<p>A paragraph</p>
@@ -26,7 +26,7 @@ will render the following HTML:
2626

2727
You can join any number of elements:
2828

29-
```html
29+
```kotlin
3030
p("First paragraph") + p("Second paragraph")
3131
```
3232

0 commit comments

Comments
 (0)