Skip to content

Commit 2928250

Browse files
committed
Merge branch 'la/strvec-comment-fix' into maint-2.43
Comment fix. * la/strvec-comment-fix: strvec: use correct member name in comments
2 parents 5193aee + f10b098 commit 2928250

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

strvec.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
/**
55
* The strvec API allows one to dynamically build and store
66
* NULL-terminated arrays of strings. A strvec maintains the invariant that the
7-
* `items` member always points to a non-NULL array, and that the array is
8-
* always NULL-terminated at the element pointed to by `items[nr]`. This
7+
* `v` member always points to a non-NULL array, and that the array is
8+
* always NULL-terminated at the element pointed to by `v[nr]`. This
99
* makes the result suitable for passing to functions expecting to receive
1010
* argv from main().
1111
*
@@ -22,7 +22,7 @@ extern const char *empty_strvec[];
2222

2323
/**
2424
* A single array. This should be initialized by assignment from
25-
* `STRVEC_INIT`, or by calling `strvec_init`. The `items`
25+
* `STRVEC_INIT`, or by calling `strvec_init`. The `v`
2626
* member contains the actual array; the `nr` member contains the
2727
* number of elements in the array, not including the terminating
2828
* NULL.
@@ -80,7 +80,7 @@ void strvec_split(struct strvec *, const char *);
8080
void strvec_clear(struct strvec *);
8181

8282
/**
83-
* Disconnect the `items` member from the `strvec` struct and
83+
* Disconnect the `v` member from the `strvec` struct and
8484
* return it. The caller is responsible for freeing the memory used
8585
* by the array, and by the strings it references. After detaching,
8686
* the `strvec` is in a reinitialized state and can be pushed

0 commit comments

Comments
 (0)