Skip to content

Commit

Permalink
docs: Fix typo in TextComponent sample code (#2910)
Browse files Browse the repository at this point in the history
This changed `=` to `:` when calling named parameter `position`.

Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
  • Loading branch information
brainwo and spydon committed Dec 8, 2023
1 parent fb6a57f commit 969a84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/flame/rendering/text_rendering.md
Expand Up @@ -29,7 +29,7 @@ class MyGame extends FlameGame {
add(
TextComponent(
text: 'Hello, Flame',
position = Vector2.all(16.0),
position: Vector2.all(16.0),
),
);
}
Expand Down

0 comments on commit 969a84f

Please sign in to comment.