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

12 lines
265 B
Plaintext

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