summaryrefslogtreecommitdiff
path: root/docs/samples/save_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'docs/samples/save_file.cpp')
-rw-r--r--docs/samples/save_file.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/docs/samples/save_file.cpp b/docs/samples/save_file.cpp
index 44bcfd1..c30e986 100644
--- a/docs/samples/save_file.cpp
+++ b/docs/samples/save_file.cpp
@@ -4,12 +4,14 @@
int main()
{
- // get a test document
- pugi::xml_document doc;
- doc.load("<foo bar='baz'>hey</foo>");
-
- //[code_save_file
- // save document to file
- std::cout << "Saving result: " << doc.save_file("save_file_output.xml") << std::endl;
- //]
+ // get a test document
+ pugi::xml_document doc;
+ doc.load("<foo bar='baz'>hey</foo>");
+
+ //[code_save_file
+ // save document to file
+ std::cout << "Saving result: " << doc.save_file("save_file_output.xml") << std::endl;
+ //]
}
+
+// vim:et