Skip to content

Commit 3341a58

Browse files
authored
Fix small typo in "cpp11" vignette (#259)
* Update cpp11.Rmd * Update cpp11.Rmd
1 parent 162063b commit 3341a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/cpp11.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ The C++ version is similar, but:
226226
Similar in-place operators are `-=`, `*=`, and `/=`.
227227

228228
This is a good example of where C++ is much more efficient than R.
229-
As shown by the following microbenchmark, `sumC()` is competitive with the built-in (and highly optimised) `sum()`, while `sumR()` is several orders of magnitude slower.
229+
As shown by the following microbenchmark, `sum_cpp()` is competitive with the built-in (and highly optimised) `sum()`, while `sum_r()` is several orders of magnitude slower.
230230

231231
```{r sum-bench}
232232
x <- runif(1e3)

0 commit comments

Comments
 (0)