]> git.ozlabs.org Git - ccan/commitdiff
array: spelling fixes.
authorBrad Hards <bradh@frogmouth.net>
Sun, 16 Jan 2011 06:15:32 +0000 (17:15 +1100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Jan 2011 05:58:53 +0000 (16:28 +1030)
ccan/array/array.c
ccan/array/array.h

index 3d810471552499bc46ecc8e79cd4f16adf24484d..5edc2ce68199a3f92cf4c03b3159e4bfc6c7f270 100644 (file)
@@ -6,7 +6,7 @@ int array_alias_helper(const void *a, const void *b) {
        return 0;
 }
 
-//grows the allocated size to accomodate the size
+//grows the allocated size to accommodate the size
 void array_resize_helper(array_char *a, size_t itemSize) {
        a->alloc = (a->size+63)&~63;
        #ifndef ARRAY_USE_TALLOC
index fb4701359e03889e4e5be6c61ae40dd46b0f473d..007c51b8f97e1095c2046245cbbc536687a7d282 100644 (file)
@@ -126,7 +126,7 @@ array_growalloc(array, newAlloc) sees if the array can currently hold newAlloc i
        if not, it increases the alloc to satisfy this requirement, allocating slack
        space to avoid having to reallocate for every size increment.
 
-array_from_string(array, str) copys a string to an array_char.
+array_from_string(array, str) copies a string to an array_char.
 
 array_push(array, item) pushes an item to the end of the array.
 array_pop_nocheck(array) pops it back out.  Be sure there is at least one item in the array before calling.