Tsallaka zuwa abun ciki
Justice Tech School

Comments and KDoc

// starts a line comment and /* */ a block. /** */ writes KDoc documentation.

Example
// a note
/* block
   comment */
/** Adds two numbers. */
fun add(a: Int, b: Int) = a + b
println(add(1, 2))

Exercise

Line comment.

 note

Quiz Test

What is KDoc?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.