Correct loop initialisation

Fixes #133
This commit is contained in:
hadley 2016-07-24 09:10:35 -05:00
parent 8642a46352
commit f02e080778
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ Here's how we could use a while loop to find how many tries it takes to get thre
```{r}
flip <- function() sample(c("T", "H"), 1)
flips <- 1
flips <- 0
nheads <- 0
while (nheads < 3) {