diff --git a/doc/classes/NodePath.xml b/doc/classes/NodePath.xml
index c82ed5f1436..a670301268b 100644
--- a/doc/classes/NodePath.xml
+++ b/doc/classes/NodePath.xml
@@ -141,7 +141,7 @@
- Gets the resource or property name indicated by [param idx] (0 to [method get_subname_count]).
+ Gets the resource or property name indicated by [param idx] (0 to [method get_subname_count] - 1).
[codeblocks]
[gdscript]
var node_path = NodePath("Path2D/PathFollow2D/Sprite2D:texture:load_path")