Fixed documentation bug (parse() sample)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@94 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
3ba642468c
commit
e516c967f9
@ -147,7 +147,7 @@ an XML file were measured.</small>
|
||||
|
||||
<b><font color="#0000ff" >char</font></b><font color="#000000" >*</font> <font color="#000000" >s</font> <font color="#000000" >=</font> <font color="#000000" >new</font> <b><font color="#0000ff" >char</font></b><font color="#000000" >[</font><b><font color="#40b440" >100</font></b><font color="#000000" >];</font>
|
||||
<font color="#000000" >strcpy(s,</font> <font color="#ff0000" >"<sample-xml>some text <b>in bold</b> here</sample-xml>"</font><font color="#000000" >);</font>
|
||||
<font color="#000000" >cout</font> <font color="#000000" ><<</font> <font color="#000000" >doc.parse(transfer_ownership_tag(),</font> <font color="#000000" >s)</font> <font color="#000000" ><<</font> <font color="#000000" >endl;</font>
|
||||
<font color="#000000" >cout</font> <font color="#000000" ><<</font> <font color="#000000" >doc.parse(</font><font color="#000000" >s)</font> <font color="#000000" ><<</font> <font color="#000000" >endl;</font>
|
||||
|
||||
<font color="#000000" >delete[]</font> <font color="#000000" >s;</font> <i><font color="#808080" >// <-- after this point, all string contents of document is invalid!</font></i>
|
||||
<font color="#000000" >}</font>
|
||||
|
Loading…
Reference in New Issue
Block a user