diff --git a/doc/snippets/MatrixBase_template_int.cpp b/doc/snippets/MatrixBase_template_int.cpp index 4041a2214..6bee6d6c5 100644 --- a/doc/snippets/MatrixBase_template_int.cpp +++ b/doc/snippets/MatrixBase_template_int.cpp @@ -1,5 +1,5 @@ -RowVector5i v = RowVector5i::Random(); +RowVector4i v = RowVector4i::Random(); cout << "Here is the vector v:" << endl << v << endl; -cout << "Here is v.block<2>(1):" << endl << v.start<2>() << endl; +cout << "Here is v.block<2>(1):" << endl << v.block<2>(1) << endl; v.block<2>(2).setZero(); cout << "Now the vector v is:" << endl << v << endl;