Browse Source

array: spelling fixes.

Brad Hards 15 years ago
parent
commit
d79a327642
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ccan/array/array.c
  2. 1 1
      ccan/array/array.h

+ 1 - 1
ccan/array/array.c

@@ -6,7 +6,7 @@ int array_alias_helper(const void *a, const void *b) {
 	return 0;
 	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) {
 void array_resize_helper(array_char *a, size_t itemSize) {
 	a->alloc = (a->size+63)&~63;
 	a->alloc = (a->size+63)&~63;
 	#ifndef ARRAY_USE_TALLOC
 	#ifndef ARRAY_USE_TALLOC

+ 1 - 1
ccan/array/array.h

@@ -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
 	if not, it increases the alloc to satisfy this requirement, allocating slack
 	space to avoid having to reallocate for every size increment.
 	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_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.
 array_pop_nocheck(array) pops it back out.  Be sure there is at least one item in the array before calling.