From 34f06c4c9a7f22a2b660bc6a23f025fd4b00011a Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Mon, 22 Jun 2020 15:24:10 +0200 Subject: Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 22478132..01c86bb8 100644 --- a/README.md +++ b/README.md @@ -216,7 +216,7 @@ int main() { #include #include declare_CHash_string(s, SET); // Shorthand macro for the general declare_CHash expansion. -// CString keys are managed internally, although CHash is ignorant of CString. + // Keys are converted to CString from literals internally, although CHash is ignorant of CString. int main() { CHash_s words = chash_init; @@ -230,7 +230,7 @@ int main() { chash_s_destroy(&words); } ``` -**CHash map** of *CString -> CString*. Temporary CString values are created by "make", and moved to the container +**CHash map** of *CString -> CString*. Temporary CString's are created by *cstring_make()*, and moved into the container ``` #include #include @@ -247,7 +247,7 @@ int main() { chash_ss_destroy(&table); // frees key and value CStrings, and hash table (CVector). } ``` -**CList** of *int64_t*. Similar to c++ std::forward_list, but can do both pushFront() and pushBack(). +**CList** of *int64_t*. Similar to c++ *std::forward_list*, but can do both *pushFront()* and *pushBack()*. ``` #include #include @@ -289,7 +289,7 @@ int main() printf("%f\n", carray3_f_data(a3, 5, 4)[3]); printf("%f\n", carray3_f_at2(a3, 5, 4).data[3]); - carray_f_destroy(&a2); // does nothing, since it is a sub-array. - carray_f_destroy(&a3); // also invalidates a2. + carray2_f_destroy(&a2); // does nothing, since it is a sub-array. + carray3_f_destroy(&a3); // also invalidates a2. } ``` -- cgit v1.2.3