mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 20:36:31 +08:00
docs: Fix typo in TextComponent sample code (#2910)
This changed `=` to `:` when calling named parameter `position`. Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
This commit is contained in:
@ -29,7 +29,7 @@ class MyGame extends FlameGame {
|
|||||||
add(
|
add(
|
||||||
TextComponent(
|
TextComponent(
|
||||||
text: 'Hello, Flame',
|
text: 'Hello, Flame',
|
||||||
position = Vector2.all(16.0),
|
position: Vector2.all(16.0),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user