what's the proper way to define a void fun
# announcements
x
what's the proper way to define a void fun
j
Just don't define a return type.
Copy code
fun something() {

}
g
you also can explicitly set return type
Unit
, but it’s not recommended style:
Copy code
fun something(): Unit {

}
x
thanks