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 @override
Future<void> add(Component component) { 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( flameTester.test(
'throws Exception when adding other component', 'throws Exception when adding a component',
(game) async { (game) async {
final component = ControlledComponent(); final component = ControlledComponent();
final controller = TestComponentController(component); final controller = TestComponentController(component);

Loading…
Cancel
Save