rspec/rules/S107/scala/split-example.adoc

12 lines
265 B
Plaintext
Raw Normal View History

2023-08-10 16:54:47 +02:00
[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 = {
// ...
}
----