Skip to content

Commit 41f2c72

Browse files
tankorsmashminggo
authored andcommitted
update Node::getTag comment (#20255)
this fixes a typo where getTag should suggest to use getName, like setTag and removeChildrenByTag does.
1 parent 917d215 commit 41f2c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/2d/CCNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ class CC_DLL Node : public Ref
967967
*
968968
* @return An integer that identifies the node.
969969
*
970-
* Please use `getTag()` instead.
970+
* Please use `getName()` instead.
971971
*/
972972
virtual int getTag() const;
973973
/**

0 commit comments

Comments
 (0)