Skip to content

Commit 39f2c57

Browse files
authored
Update DynamicArray.c
1 parent 34503f3 commit 39f2c57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zorro_folder/Strategy/DynamicArray.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ void demo1()
4040

4141
int h = da_new(sizeof(EXAMPLE));
4242

43-
// declare four blank structs
44-
EXAMPLE e1, e2; // single structs
45-
EXAMPLE ea[2]; // array of two structs
43+
// declare two structs and one array of two structs, and set them to blank.
44+
EXAMPLE e1, e2;
45+
EXAMPLE ea[2];
4646
memset(&e1, 0, sizeof(EXAMPLE));
4747
memset(&e2, 0, sizeof(EXAMPLE));
4848
memset(ea, 0, 2 * sizeof(EXAMPLE));

0 commit comments

Comments
 (0)