diff --git a/doc/tutorial/advanced.xml b/doc/tutorial/advanced.xml
index 49f3de2..594eaf3 100644
--- a/doc/tutorial/advanced.xml
+++ b/doc/tutorial/advanced.xml
@@ -343,7 +343,7 @@ seq2.push_back(3.14);
are_strict_equals visitor;
assert( std::equal(
- v1.begin(), v1.end(), v2.begin()
+ seq1.begin(), seq1.end(), seq2.begin()
, boost::apply_visitor( visitor )
) );
diff --git a/doc/tutorial/basic.xml b/doc/tutorial/basic.xml
index 4199f7a..1219d21 100644
--- a/doc/tutorial/basic.xml
+++ b/doc/tutorial/basic.xml
@@ -83,9 +83,9 @@ str += " world! ";
void times_two( boost::variant< int, std::string > & operand )
{
- if ( int* pi = boost::get<int>( &v ) )
+ if ( int* pi = boost::get<int>( &operand ) )
*pi *= 2;
- else if ( std::string* pstr = boost::get<std::string>( &v ) )
+ else if ( std::string* pstr = boost::get<std::string>( &operand ) )
*pstr += *pstr;
}