Update tutorial_5.md (#23550)

`repliesSoFar` is implied here, not `answersSoFar` which is never used in tutorial
This commit is contained in:
SirMullich 2017-08-21 14:48:53 +06:00 committed by Arnout Engelen
parent d07df2b917
commit 769f9c09cf

View file

@ -116,7 +116,7 @@ Scala
Java Java
: @@snip [DeviceGroupQuery.java]($code$/java/jdocs/tutorial_5/DeviceGroupQuery.java) { #query-state } : @@snip [DeviceGroupQuery.java]($code$/java/jdocs/tutorial_5/DeviceGroupQuery.java) { #query-state }
It is not yet clear how we will "mutate" the `answersSoFar` and `stillWaiting` data structures. One important thing to note is that the function `waitingForReplies` **does not handle the messages directly. It returns a `Receive` function that will handle the messages**. This means that if we call `waitingForReplies` again, with different parameters, It is not yet clear how we will "mutate" the `repliesSoFar` and `stillWaiting` data structures. One important thing to note is that the function `waitingForReplies` **does not handle the messages directly. It returns a `Receive` function that will handle the messages**. This means that if we call `waitingForReplies` again, with different parameters,
then it returns a brand new `Receive` that will use those new parameters. then it returns a brand new `Receive` that will use those new parameters.
We have seen how we We have seen how we