From 5d3ea34c5056373917bd6978085f10565716c965 Mon Sep 17 00:00:00 2001 From: alestiago Date: Thu, 31 Mar 2022 23:38:38 +0100 Subject: [PATCH] docs: rephrased text --- lib/flame/component_controller.dart | 2 +- test/flame/component_controller_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/flame/component_controller.dart b/lib/flame/component_controller.dart index bc88094c..d1da90a6 100644 --- a/lib/flame/component_controller.dart +++ b/lib/flame/component_controller.dart @@ -25,7 +25,7 @@ abstract class ComponentController extends Component { @override Future add(Component component) { - throw Exception('ComponentController should not add other components.'); + throw Exception('ComponentController cannot add other components.'); } } diff --git a/test/flame/component_controller_test.dart b/test/flame/component_controller_test.dart index 0df9719b..422b30bf 100644 --- a/test/flame/component_controller_test.dart +++ b/test/flame/component_controller_test.dart @@ -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);