Skip to content

Commit

Permalink
Merge pull request godotengine#75370 from AThousandShips/nodepath_doc…
Browse files Browse the repository at this point in the history
…_fix_3_x

[3.x] Fix `NodePath` subname index range documentation
  • Loading branch information
akien-mga committed Jun 2, 2023
2 parents f753aec + ff61fea commit 1d8b701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/NodePath.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<return type="String" />
<argument index="0" name="idx" type="int" />
<description>
Gets the resource or property name indicated by [code]idx[/code] (0 to [method get_subname_count]).
Gets the resource or property name indicated by [code]idx[/code] (0 to [method get_subname_count] - 1).
[codeblock]
var node_path = NodePath("Path2D/PathFollow2D/Sprite:texture:load_path")
print(node_path.get_subname(0)) # texture
Expand Down

0 comments on commit 1d8b701

Please sign in to comment.