Update functions.Rmd (#293)

Small typo
This commit is contained in:
S'busiso Mkhondwane 2016-08-21 00:26:10 +02:00 committed by Hadley Wickham
parent 1913474b52
commit 947a5da3c1
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ Figuring out what your function should return is usually straightforward: it's w
### Explicit return statements
The value returned by the function is the usually the last statement it evaluates, but you can choose to return early by using `return()`. I think it's best to save the use of `return()` to signal that you can return early with a simpler solution. A common reason to do this is because the inputs are empty:
The value returned by the function is usually the last statement it evaluates, but you can choose to return early by using `return()`. I think it's best to save the use of `return()` to signal that you can return early with a simpler solution. A common reason to do this is because the inputs are empty:
```{r}
complicated_function <- function(x, y, z) {