From 4344d47e9bf363f3459327534311d741ac83d8f4 Mon Sep 17 00:00:00 2001 From: mat <26722564+matcool@users.noreply.github.com> Date: Sat, 23 Nov 2024 16:57:09 -0300 Subject: [PATCH] Update migrate-v4.md --- tutorials/migrate-v4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/migrate-v4.md b/tutorials/migrate-v4.md index f7aee6d..9a418a4 100644 --- a/tutorials/migrate-v4.md +++ b/tutorials/migrate-v4.md @@ -59,7 +59,7 @@ static Result> parse(std::string const&, std::string ## Changes to `getChildOfType` * Deprecated in 3.9.0, and now removed, use `CCNode::getChildByType(int index)` instead: -* `getChildOfType(node, 1)` -> `node->getChildByType(1)` +* `getChildOfType(node, 1)` -> `node->getChildByType(1)` * You can use this regex pattern to quickly find and replace: * `getChildOfType<(.+?)>\((.+?),\s*(.+?)\)` and replace with `$2->getChildByType<$1>($3)`