rspec/rules/S107/dart/split-example.adoc
2024-08-23 17:09:43 +02:00

12 lines
250 B
Plaintext

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