diff options
Diffstat (limited to 'doc/snippets/MatrixBase_end_int.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_end_int.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/snippets/MatrixBase_end_int.cpp b/doc/snippets/MatrixBase_end_int.cpp index aaa54b668..03c54a931 100644 --- a/doc/snippets/MatrixBase_end_int.cpp +++ b/doc/snippets/MatrixBase_end_int.cpp @@ -1,5 +1,5 @@ RowVector4i v = RowVector4i::Random(); cout << "Here is the vector v:" << endl << v << endl; -cout << "Here is v.end(2):" << endl << v.end(2) << endl; -v.end(2).setZero(); +cout << "Here is v.tail(2):" << endl << v.tail(2) << endl; +v.tail(2).setZero(); cout << "Now the vector v is:" << endl << v << endl; |