Skip to content

Commit 0ea94db

Browse files
Apply suggestions from code review
Updating grammar in the kdoc. Co-authored-by: Ray Ryan <[email protected]>
1 parent 2a405c5 commit 0ea94db

File tree

1 file changed

+4
-4
lines changed
  • workflow-testing/src/main/java/com/squareup/workflow1/testing

1 file changed

+4
-4
lines changed

workflow-testing/src/main/java/com/squareup/workflow1/testing/RenderTester.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,15 +623,15 @@ public inline fun <ChildPropsT, ChildOutputT, ChildRenderingT, PropsT, StateT, O
623623
* is the definition of a workflow whose [OutputT] and [RenderingT] are supertypes of the [OutputT]
624624
* and [RenderingT] of the child workflow type you expect to be rendered.
625625
* In other words, the expected workflow is covariant with the class you have to pass to the
626-
* expectation. There is a slight nuance here, in that if the [OutputT] is a supertype of the
626+
* expectation. (There is a slight nuance here, in that if the [OutputT] is a supertype of the
627627
* expected child's [OutputT], then those workflow's are not actually covariant since [OutputT]
628-
* is an invariant generic type. This is not important for the use of this expectation, however.
628+
* is an invariant generic type. This is not important for the use of this expectation, however.)
629629
*
630-
* The most often case for this is when you are using a generic factory to construct Workflow
630+
* The most common need for this is when you are using a generic factory to construct Workflow
631631
* instances that you then wish to expect in your test.
632632
*
633633
* In that case, use this expectation and provide the [KClass] of the Workflow type, along with the
634-
* [KType] of the [OutputT] and [RenderingT], the [PropsT] can simply be verified for type safety
634+
* [KType] of the [OutputT] and [RenderingT]. The [PropsT] can simply be verified for type safety
635635
* inside [assertProps] by casting the [Any?] into the expected [PropsT].
636636
*
637637
* Note that this implementation does not handle [ImpostorWorkflow][com.squareup.workflow1.ImpostorWorkflow]s

0 commit comments

Comments
 (0)