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

12 lines
248 B
Plaintext

[source,go]
----
// 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) {
// ...
}
----