summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2015-03-11 12:42:12 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2015-03-11 12:42:12 +0100
commitd348bf71f2139c0112db204acabe5fc3cf1c8173 (patch)
tree9c90658fd04260e7a72d387837941d70756435c7 /src
parent4a3ed6a7ce035f1b0ad7c8130242d052dc5efcec (diff)
Update code examples in documentation
Add new parser option argument.
Diffstat (limited to 'src')
-rw-r--r--src/cmark.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmark.h b/src/cmark.h
index e29f28a..ffaca68 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -412,11 +412,11 @@ cmark_consolidate_text_nodes(cmark_node *root);
*
* Simple interface:
*
- * cmark_node *document = cmark_parse_document("Hello *world*", 12);
+ * cmark_node *document = cmark_parse_document("Hello *world*", 12, 0);
*
* Streaming interface:
*
- * cmark_parser *parser = cmark_parser_new();
+ * cmark_parser *parser = cmark_parser_new(0);
* FILE *fp = fopen("myfile.md", "r");
* while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
* cmark_parser_feed(parser, buffer, bytes);