DarkLord79at (11) [Avatar] Offline
#1
MEAPv3

Listing 4.6

Shouldn't

"#B The created observable will push the numbers one to five"

read

"#B The created observable will push the numbers zero to four"

? (for (int i = 0; i < 5; i++) ...)

Last paragraph before 3.2.3:

Shouldn't

"The output of this example might not be what you expected. Instead of printing the numbers 1 to 4, this code prints the number 4 four times. This is because when each action is executed it reads the value of i, and the value of i is the value it received in the last iteration of the loop, which is four."

read

"The output of this example might not be what you expected. Instead of printing the numbers 0 to 4, this code prints the number 4 five times. This is because when each action is executed it reads the value of i, and the value of i is the value it received in the last iteration of the loop, which is four."

?
Tamir Dresher (35) [Avatar] Offline
#2
Thank you!
You are right
This will be fixed