summaryrefslogtreecommitdiff
path: root/src/cmark.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmark.h')
-rw-r--r--src/cmark.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmark.h b/src/cmark.h
index 45d7bc3..3543c82 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -112,7 +112,8 @@ typedef struct cmark_mem {
CMARK_EXPORT cmark_node *cmark_node_new(cmark_node_type type);
/** Same as `cmark_node_new`, but explicitly listing the memory
- * allocator used to allocate the node
+ * allocator used to allocate the node. Note: be sure to use the same
+ * allocator for every node in a tree, or bad things can happen.
*/
CMARK_EXPORT cmark_node *cmark_node_new_with_mem(cmark_node_type type, cmark_mem *mem);