Skip to content

Commit 52135fb

Browse files
authored
Fix JS example warnings (#1968)
1 parent 76e6440 commit 52135fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/example-frontend-js/src/ExampleMain.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import kotlin.browser.*
1212
import kotlin.coroutines.*
1313
import kotlin.math.*
1414

15-
fun main(args: Array<String>) {
15+
fun main() {
1616
println("Starting example application...")
1717
document.addEventListener("DOMContentLoaded", {
1818
Application().start()
@@ -89,7 +89,7 @@ class Application : CoroutineScope {
8989
val speed = 0.3
9090
val rs = 20.0
9191
val turnAfter = 5000.0 // seconds
92-
var maxX = sw - rs
92+
val maxX = sw - rs
9393
val maxY = sh - rs
9494
animation("rect", rs) { rect ->
9595
println("Started new 'rect' coroutine #$index")

0 commit comments

Comments
 (0)