aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/tutorial.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-28 06:17:36 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-28 06:17:36 +0000
commitaa3294f14e33ae5078fcdbedc9df241a674a9f2e (patch)
treee95314cdb90238b4e3558257474e32d01681e5a2 /doc/tutorial.cpp
parent835e0c9f674554adf9621fd84b32c9cde9f2bdf6 (diff)
add example to the documentation
Diffstat (limited to 'doc/tutorial.cpp')
-rw-r--r--doc/tutorial.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.cpp b/doc/tutorial.cpp
index d909779c5..1da3deb1d 100644
--- a/doc/tutorial.cpp
+++ b/doc/tutorial.cpp
@@ -43,7 +43,7 @@ int main(int, char **)
<< "overwritten _while_ the matrix product m * m is being computed." << endl
<< "This is the counterpart of eliminating temporary objects!" << endl
<< "Anyway, if you want to store m * m into m, you can do this:" << endl
- << " m = eval(m * m);" << endl;
+ << " m = (m * m).eval();" << endl;
m = m_save;
m = (m * m).eval();
cout << "And m is now:" << endl << m << endl << "as was expected." << endl;