Skip to content

Commit 2aadd23

Browse files
Use better terminology
I realize that VLAs also don't have a known size at compile-time.
1 parent 8a9fc39 commit 2aadd23

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/c-api/intro.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,10 @@ complete listing.
326326
327327
Compute the length of a statically allocated C array at compile time.
328328

329-
The *array* argument must be a C array with a size known at compile time,
330-
not on the heap. Passing a heap-allocated array will result in a compilation
331-
error on some compilers, or otherwise produce incorrect results.
329+
The *array* argument must be a C array with a size known at compile time.
330+
Passing an array with an unknown size, such as a heap-allocated array,
331+
will result in a compilation error on some compilers, or otherwise produce
332+
incorrect results.
332333

333334
This is roughly equivalent to::
334335

0 commit comments

Comments
 (0)