aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-10-21 23:47:03 +0200
committerRobert Jaros <rjaros@finn.pl>2018-10-21 23:47:03 +0200
commitdec46533acbfa4751337149dcf7b1a67f9bb42fd (patch)
tree40e63e8da14ba53e06c9a12410e8a7bf613ae2ca /README.md
parent9d7e3393425e8484b9c862654e1d547b69aa765b (diff)
downloadkvision-dec46533acbfa4751337149dcf7b1a67f9bb42fd.tar.gz
kvision-dec46533acbfa4751337149dcf7b1a67f9bb42fd.tar.bz2
kvision-dec46533acbfa4751337149dcf7b1a67f9bb42fd.zip
Updated README.
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index fa54737a..3ca97c56 100644
--- a/README.md
+++ b/README.md
@@ -144,7 +144,7 @@ Application package will be saved as build/distributions/showcase.zip.
add(Model::username, Text(label = "Username"), required = true)
add(Model::password, Password(label = "Password"), required = true)
add(Button("OK").onClick {
- val data: Data = this@FormPanel.getData()
+ val data: Model = this@FormPanel.getData()
println("Username: ${data.username}")
println("Password: ${data.password}")
})
@@ -164,7 +164,7 @@ Application package will be saved as build/distributions/showcase.zip.
Label(data.text)
}, child = HPanel(spacing = 10, wrap = FlexWrap.WRAP)))
- launch { // Kotlin coroutines
+ GlobalScope.launch { // Kotlin coroutines
while (true) {
delay(1000)
model.reverse()