diff --git a/doc/book/basics.tex b/doc/book/basics.tex index b6c41e41..da492e43 100644 --- a/doc/book/basics.tex +++ b/doc/book/basics.tex @@ -545,7 +545,7 @@ vmime::ref msg; // Obtains a reference to the body contents vmime::ref body = msg->getBody(); -vmime::ref cts = msg->getContents(); +vmime::ref cts = body->getContents(); vmime::utility::outputStreamAdapter out(std::cout); cts->extract(out);