@@ -8,20 +8,17 @@ using namespace BT;
88 */
99
1010/* *
11- * You can optinally add a model to a SubTrees, in this case "MySub".
12- * We are telling to the factory that the callee should remap
13- * two mandatory inputs, called :
11+ * You can optionally add a model to a SubTrees, in this case, "MySub".
12+ * We are telling the factory that the callee should remap
13+ * two mandatory inputs, and two outputs :
1414 *
1515 * - sub_in_value (that has the default value 42)
1616 * - sub_in_name (no default)
17- *
18- * Similarly, there are two output values:
19- *
2017 * - sub_out_result (default remapping to port {output})
2118 * - sub_out_state (no default)
2219 *
23- * The callee MUST specify those remapping that have
24- * no default value.
20+ * The callee (parent tree, including the subtree) MUST specify those
21+ * remapping which have no default value.
2522 */
2623
2724// clang-format off
@@ -47,8 +44,8 @@ static const char* xml_subtree = R"(
4744 )" ;
4845
4946/* *
50- * Here, when calling "MySub", only in_name and out_state are explicitly
51- * remapped. Will we use the default values for the other two.
47+ * Here, when calling "MySub", only `sub_in_name` and `sub_out_state` are explicitly
48+ * remapped. We will use the default values for the other two.
5249 */
5350
5451static const char * xml_maintree = R"(
@@ -78,7 +75,7 @@ int main()
7875 StdCoutLogger logger (tree);
7976 tree.tickWhileRunning ();
8077
81- // We expect the sequence to be succesful .
78+ // We expect the sequence to be successful .
8279
8380 // The full remapping was:
8481 //
0 commit comments