mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 04:47:13 +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(
 | 
			
		||||
      TextComponent(
 | 
			
		||||
        text: 'Hello, Flame',
 | 
			
		||||
        position = Vector2.all(16.0),
 | 
			
		||||
        position: Vector2.all(16.0),
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user