]> git.ozlabs.org Git - ccan/blobdiff - ccan/tlist/_info
tal: allow notifiers on NULL.
[ccan] / ccan / tlist / _info
index 4c3394c977b5459eec1f7a3ec826cf8142f1728e..19fc4bd9fb3d731a6127d960b8df74c272569e9d 100644 (file)
@@ -6,7 +6,7 @@
  * tlist - typesafe double linked list routines
  *
  * The list header contains routines for manipulating double linked lists;
- * this extends it so you can create list head types which only accomodate
+ * this extends it so you can create list head types which only accommodate
  * a specific entry type.
  *
  * Example:
  *     #include <stdlib.h>
  *     #include <ccan/tlist/tlist.h>
  *
- *     // We could use TLIST_TYPE(children, struct child) to define this.
- *     struct tlist_children {
- *             struct list_head raw;
- *             TCON(struct child *canary);
- *     };
+ *     TLIST_TYPE(children, struct child);
  *     struct parent {
  *             const char *name;
  *             unsigned int num_children;