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

12 lines
250 B
Plaintext
Raw Normal View History

[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) {
// ...
}
----