summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2015-03-11 19:18:18 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2015-03-11 19:18:18 +0100
commitb4ed40eb4899afb59773ac1d3473f9603b3934a9 (patch)
tree4c363794b1b907fcf1cba3aa30c4f40218a146f7
parentd348bf71f2139c0112db204acabe5fc3cf1c8173 (diff)
Use CMARK_OPT_DEFAULT in code examples
-rw-r--r--src/cmark.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmark.h b/src/cmark.h
index ffaca68..3c68ac6 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -412,11 +412,12 @@ cmark_consolidate_text_nodes(cmark_node *root);
*
* Simple interface:
*
- * cmark_node *document = cmark_parse_document("Hello *world*", 12, 0);
+ * cmark_node *document = cmark_parse_document("Hello *world*", 12,
+ * CMARK_OPT_DEFAULT);
*
* Streaming interface:
*
- * cmark_parser *parser = cmark_parser_new(0);
+ * cmark_parser *parser = cmark_parser_new(CMARK_OPT_DEFAULT);
* FILE *fp = fopen("myfile.md", "r");
* while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
* cmark_parser_feed(parser, buffer, bytes);