[Rcpp-commits] r3041 - pkg/Rcpp/inst/doc/Rcpp-modules

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon May 30 21:50:42 CEST 2011


Author: jmc
Date: 2011-05-30 21:50:41 +0200 (Mon, 30 May 2011)
New Revision: 3041

Modified:
   pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw
Log:
minor typos (I think) in adding Uniform example

Modified: pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw	2011-05-30 14:27:18 UTC (rev 3040)
+++ pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw	2011-05-30 19:50:41 UTC (rev 3041)
@@ -552,7 +552,7 @@
 
 \subsubsection{Initial example}
 
-A class is exposed using the \texttt{class\_} keyword. The \texttt{World}
+A class is exposed using the \texttt{class\_} keyword. The \texttt{Uniform}
 class may be exposed to \proglang{R} as follows:
 
 <<lang=cpp>>=
@@ -582,7 +582,7 @@
     .field( "min", &Uniform::min )
     .field( "max", &Uniform::max )
 
-    .method( "draw", &World::draw )
+    .method( "draw", &Uniform::draw )
     .method( "range", &range )
     ;
 



More information about the Rcpp-commits mailing list