From 1600b8cc2f482d2c3f8631b3d0d8453a9adea5ad Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Wed, 20 Sep 2023 14:35:32 -0400 Subject: [PATCH] Add comment about preallocateMATLABArray calls --- matlab/src/matlab/+arrow/+type/StructType.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/src/matlab/+arrow/+type/StructType.m b/matlab/src/matlab/+arrow/+type/StructType.m index 5990ca3c0f2bd..331ac75a2ee16 100644 --- a/matlab/src/matlab/+arrow/+type/StructType.m +++ b/matlab/src/matlab/+arrow/+type/StructType.m @@ -43,8 +43,8 @@ validVariableNames = makeValidVariableNames(fieldNames); validDimensionNames = makeValidDimensionNames(validVariableNames); - % Preallocates each table variable. Uses the child field types - % to construct the correct MATLAB type. + % Recursively call preallocateMATLABArray to handle + % preallocation of nested types variableData = cell(1, numel(fields)); for ii = 1:numel(fields) type = fields(ii).Type;