From f61b7e2cc291ae9015f23dc8786adc1dc88eff59 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 28 Mar 2020 09:32:52 +0000 Subject: [PATCH] struct/assoc.[ch]: Fix some commentary typos. --- struct/assoc.c | 5 +++-- struct/assoc.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/struct/assoc.c b/struct/assoc.c index 9aef172..27d25bf 100644 --- a/struct/assoc.c +++ b/struct/assoc.c @@ -89,7 +89,8 @@ void assoc_destroy(assoc_table *t) * the pointer returned. The flag @*f@ is cleared if the item * couldn't be found, or set if it was. * - * All the atoms used in a particular table should + * All the atoms used in a particular table should come from the + * same atom table. */ void *assoc_find(assoc_table *t, atom *a, size_t sz, unsigned *f) @@ -115,7 +116,7 @@ void *assoc_find(assoc_table *t, atom *a, size_t sz, unsigned *f) if (f) *f = 0; if (!sz) return (0); - /* --- Make a new assoication --- */ + /* --- Make a new association --- */ q = x_alloc(t->t.a, sz); q->a = a; diff --git a/struct/assoc.h b/struct/assoc.h index 5fd1f29..6a40def 100644 --- a/struct/assoc.h +++ b/struct/assoc.h @@ -98,7 +98,8 @@ extern void assoc_destroy(assoc_table */*t*/); * the pointer returned. The flag @*f@ is cleared if the item * couldn't be found, or set if it was. * - * All the atoms used in a particular table should + * All the atoms used in a particular table should come from the + * same atom table. */ extern void *assoc_find(assoc_table */*t*/, atom */*a*/, -- 2.11.0