Bläddra i källkod

Fix example in `NodePath.get_name()` documentation

The output of `node_path.get_name(2)` is stated to be `Sprite`,
but the actual output is `Sprite2D`.
Krazy_J 1 år sedan
förälder
incheckning
b359f8e6f5
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      doc/classes/NodePath.xml

+ 2 - 2
doc/classes/NodePath.xml

@@ -121,13 +121,13 @@
 				var node_path = NodePath("Path2D/PathFollow2D/Sprite2D")
 				print(node_path.get_name(0)) # Path2D
 				print(node_path.get_name(1)) # PathFollow2D
-				print(node_path.get_name(2)) # Sprite
+				print(node_path.get_name(2)) # Sprite2D
 				[/gdscript]
 				[csharp]
 				var nodePath = new NodePath("Path2D/PathFollow2D/Sprite2D");
 				GD.Print(nodePath.GetName(0)); // Path2D
 				GD.Print(nodePath.GetName(1)); // PathFollow2D
-				GD.Print(nodePath.GetName(2)); // Sprite
+				GD.Print(nodePath.GetName(2)); // Sprite2D
 				[/csharp]
 				[/codeblocks]
 			</description>