rspec/rules/S107/kotlin/split-example.adoc
2023-08-10 16:54:47 +02:00

12 lines
256 B
Plaintext

[source,kotlin]
----
// Each function does a part of what the original setCoordinates function was doing, so confusion risks are lower
fun setOrigin(x: Int, y: Int, z: Int) {
// ...
}
fun setSize(width: Int, height: Int, depth: Int) {
// ...
}
----