docs: rephrased text

pull/121/head
alestiago 4 years ago
parent 1019b669fa
commit 5d3ea34c50

@ -25,7 +25,7 @@ abstract class ComponentController<T extends Component> extends Component {
@override
Future<void> add(Component component) {
throw Exception('ComponentController should not add other components.');
throw Exception('ComponentController cannot add other components.');
}
}

@ -47,7 +47,7 @@ void main() {
);
flameTester.test(
'throws Exception when adding other component',
'throws Exception when adding a component',
(game) async {
final component = ControlledComponent();
final controller = TestComponentController(component);

Loading…
Cancel
Save