From 19908d147f4ddd95497c96197f78e2766c1d54c8 Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Mon, 4 Jan 2021 14:32:47 +0100 Subject: Update crand_api.md --- docs/crand_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/crand_api.md b/docs/crand_api.md index 6b14939d..46d6ef1c 100644 --- a/docs/crand_api.md +++ b/docs/crand_api.md @@ -70,11 +70,11 @@ RNG, around 68% of the values fall within the range [*mean* - *stddev*, *mean* + using_cmap(i, int, size_t); // Comparison of map keys. -static int compare(cmap_i_entry_t *a, cmap_i_entry_t *b) { +static int compare(cmap_i_value_t *a, cmap_i_value_t *b) { return c_default_compare(&a->first, &b->first); } // Declare vector of map entries, with comparison function. -using_cvec(e, cmap_i_entry_t, compare); +using_cvec(e, cmap_i_value_t, compare); int main() -- cgit v1.2.3