Skip to content

Commit 4344d47

Browse files
authored
Update migrate-v4.md
1 parent ef2cf74 commit 4344d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/migrate-v4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static Result<std::shared_ptr<SettingV3>> parse(std::string const&, std::string
5959
6060
## Changes to `getChildOfType`
6161
* Deprecated in 3.9.0, and now removed, use `CCNode::getChildByType<T>(int index)` instead:
62-
* `getChildOfType<CCLayer>(node, 1)` -> `node->getChildByType<CCLayer*>(1)`
62+
* `getChildOfType<CCLayer>(node, 1)` -> `node->getChildByType<CCLayer>(1)`
6363
* You can use this regex pattern to quickly find and replace:
6464
* `getChildOfType<(.+?)>\((.+?),\s*(.+?)\)` and replace with `$2->getChildByType<$1>($3)`
6565

0 commit comments

Comments
 (0)