summaryrefslogtreecommitdiff
path: root/documentation/cxx/tree
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/cxx/tree')
-rw-r--r--documentation/cxx/tree/guide/index.xhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/cxx/tree/guide/index.xhtml b/documentation/cxx/tree/guide/index.xhtml
index 476e7ea..c8f6157 100644
--- a/documentation/cxx/tree/guide/index.xhtml
+++ b/documentation/cxx/tree/guide/index.xhtml
@@ -1472,7 +1472,7 @@ class person_t
<pre class="c++">
person_t::middle_name_optional n ("John");
-if (n.preset ())
+if (n.present ())
{
cout &lt;&lt; n.get () &lt;&lt; endl;
}