Skip to content

Commit 551ee52

Browse files
authored
Merge pull request #1086 from sssurvey/correcting-sample-tutorial4
Fix incorrect variable name in Sample/Tutorial4
2 parents 9a5bd11 + 58e2d72 commit 551ee52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/tutorial/Tutorial4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ object TodoWorkflow : StatefulWorkflow<TodoProps, State, Output, List<Any>>() {
151151
}
152152
```
153153

154-
Because `TodoWorkflow.State` has no properties anymore, it can't be a `data` class, so we need to change it to an `object`. Since the only reason to have a custom type for state is to define the data we want to store, we don't need a custom type anymore so we can just use `Unit`. You might ask why we need a state at all now. We will discuss that in the next section. For now `Unit` will get us moving forward.
154+
Because `TodoListWorkflow.State` has no properties anymore, it can't be a `data` class, so we need to change it to an `object`. Since the only reason to have a custom type for state is to define the data we want to store, we don't need a custom type anymore so we can just use `Unit`. You might ask why we need a state at all now. We will discuss that in the next section. For now `Unit` will get us moving forward.
155155

156156
```kotlin
157157
object TodoListWorkflow : StatefulWorkflow<ListProps, Unit, Output, TodoListScreen>() {

0 commit comments

Comments
 (0)