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

12 lines
257 B
Plaintext

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