summaryrefslogtreecommitdiffstats
path: root/doc/classes/NodePath.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/NodePath.xml')
-rw-r--r--doc/classes/NodePath.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/NodePath.xml b/doc/classes/NodePath.xml
index 553a3913d8..328e572c13 100644
--- a/doc/classes/NodePath.xml
+++ b/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>