From 4d47681181752ddba0e680f3cd8caeccb0ad4072 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 15 Aug 2017 12:12:43 +0200 Subject: [PATCH] Update --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ce6bc24b..e49f2785 100644 --- a/README.md +++ b/README.md @@ -2614,17 +2614,17 @@ The defined algorithms depend on the availability of the methods of the containe Example: - ARRAY_DEF(int, int) - ALGO_DEF(algo_array, ARRAY_OPLIST(int)) + ARRAY_DEF(array_int, int) + ALGO_DEF(array_in, ARRAY_OPLIST(int)) void f(void) { array_int_t l; array_int_init(l); for(int i = 0; i < 100; i++) array_int_push_back (l, i); array_int_push_back (l, 17); - assert( algo_array_contains(l, 62) == true); - assert( algo_array_contains(l, -1) == false); - assert( algo_array_count(l, 17) == 2); + assert( array_int_contains(l, 62) == true); + assert( array_int_contains(l, -1) == false); + assert( array_int_count(l, 17) == 2); array_int_clear(l); }