Skip to content

Commit f1df4da

Browse files
authored
Tweak WorkflowAction kdoc
1 parent f4597ac commit f1df4da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import kotlin.jvm.JvmOverloads
1313
*
1414
* A [WorkflowAction]'s [apply] method is executed in the context of an [Updater][WorkflowAction.Updater],
1515
* which provides access to the current [props][WorkflowAction.Updater.props] and
16-
* [state][WorkflowAction.Updater.props]. The latter can be updated with a new [StateT] instance
16+
* [state][WorkflowAction.Updater.state],
17+
* along with a [setOutput][WorkflowAction.Updater.setOutput] function.
18+
* The [state][WorkflowAction.Updater.state] can be updated with a new [StateT] instance
1719
* that will become the current one after the [apply] function finishes.
1820
*
1921
* It is possible for one [WorkflowAction] to delegate to another, although the API is a bit opaque:

0 commit comments

Comments
 (0)