Skip to content

Commit 110d062

Browse files
authored
Merge pull request #827 from tyler-higashi/patch-2
Update to Tutorial2.md Thanks again!
2 parents 2d36ba1 + a745b5a commit 110d062

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

samples/tutorial/Tutorial2.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ The override for using `renderChild` on a child Workflow with `Nothing` as its o
269269
): Any {
270270
// Render a child workflow of type WelcomeWorkflow. When renderChild is called, the
271271
// infrastructure will start a child workflow session with state, if one is not already running.
272-
val welcomeScreen = context.renderChild(WelcomeWorkflow)
272+
val welcomeScreen = context.renderChild(WelcomeWorkflow)
273273
return welcomeScreen
274274
}
275275
```
@@ -418,8 +418,7 @@ object RootWorkflow : StatefulWorkflow<Unit, State, Nothing, Any>() {
418418

419419
// When the state is Todo, defer to the TodoListWorkflow.
420420
is Todo -> {
421-
val todoScreen
422-
= context.renderChild(TodoListWorkflow, Unit)) {
421+
val todoScreen = context.renderChild(TodoListWorkflow, Unit) {
423422
TODO() // we'll handle output of TodoListWorkflow later
424423
}
425424
return todoScreen

0 commit comments

Comments
 (0)