Skip to content

Commit

Permalink
Fix missing main function error in theory lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
onewhl committed Oct 3, 2023
1 parent 6263668 commit 5430552
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ fun funWithCodeStyleIssues() {
for ( i in 1..10) {
println("Please, fix me!")
}
}

fun main() {
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ class Store {
PrintWriter(file, Charsets.UTF_8).use { it.print(text) }
}
}

fun main() {
val client = Store()
println(client.calculateTotalPrice(listOf(1, 2, 3))) // Output: Sum of prices
}

0 comments on commit 5430552

Please sign in to comment.