You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ke...@apache.org on 2023/11/30 14:28:52 UTC

(arrow) branch main updated: GH-38946: [MATLAB] Fix spelling (#38947)

This is an automated email from the ASF dual-hosted git repository.

kevingurney pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 5a2d6a91bf GH-38946: [MATLAB] Fix spelling (#38947)
5a2d6a91bf is described below

commit 5a2d6a91bf2dd83615dcdb10cd3e2d89bbfa14f2
Author: Josh Soref <21...@users.noreply.github.com>
AuthorDate: Thu Nov 30 09:28:44 2023 -0500

    GH-38946: [MATLAB] Fix spelling (#38947)
    
    
    
    ### Rationale for this change
    
    ### What changes are included in this PR?
    
    Spelling fixes to matlab/
    
    ### Are these changes tested?
    
    ### Are there any user-facing changes?
    
    * Closes: #38946
    
    Lead-authored-by: Josh Soref <21...@users.noreply.github.com>
    Co-authored-by: Kevin Gurney <ke...@gmail.com>
    Signed-off-by: Kevin Gurney <kg...@mathworks.com>
---
 matlab/src/cpp/arrow/matlab/array/proxy/array.cc               |  2 +-
 matlab/src/cpp/arrow/matlab/array/proxy/time_array.h           |  2 +-
 matlab/src/cpp/arrow/matlab/array/proxy/timestamp_array.cc     |  2 +-
 matlab/src/cpp/arrow/matlab/bit/pack.cc                        |  2 +-
 matlab/src/cpp/arrow/matlab/error/error.h                      |  2 +-
 matlab/src/cpp/arrow/matlab/tabular/get_row_as_string.h        |  4 ++--
 matlab/src/cpp/arrow/matlab/tabular/proxy/schema.cc            |  2 +-
 matlab/src/cpp/arrow/matlab/type/proxy/time_type.cc            |  2 +-
 matlab/src/cpp/arrow/matlab/type/proxy/timestamp_type.cc       |  2 +-
 matlab/src/matlab/+arrow/+array/StructArray.m                  |  2 +-
 .../matlab/+arrow/+internal/+test/+display/makeLinkString.m    |  2 +-
 matlab/src/matlab/+arrow/+internal/+validate/nonsparse.m       |  2 +-
 matlab/src/matlab/+arrow/+internal/+validate/realnumeric.m     |  2 +-
 matlab/src/matlab/+arrow/+internal/+validate/shape.m           |  2 +-
 matlab/src/matlab/+arrow/+internal/+validate/type.m            |  2 +-
 .../matlab/+arrow/+tabular/+internal/makeValidDimensionNames.m |  6 +++---
 matlab/src/matlab/+arrow/+type/Type.m                          |  2 +-
 matlab/src/matlab/+arrow/+util/table2mlarrow.m                 |  2 +-
 matlab/test/arrow/array/list/tTableValidator.m                 |  2 +-
 matlab/test/arrow/array/tChunkedArray.m                        |  2 +-
 matlab/test/arrow/array/tFloat32Array.m                        |  2 +-
 matlab/test/arrow/array/tFloat64Array.m                        |  2 +-
 matlab/test/arrow/array/tListArray.m                           |  8 ++++----
 matlab/test/arrow/array/tTime32Array.m                         |  2 +-
 matlab/test/arrow/array/tTime64Array.m                         | 10 +++++-----
 matlab/test/arrow/array/tTimestampArray.m                      |  4 ++--
 matlab/test/arrow/internal/validate/index/tNumeric.m           | 10 +++++-----
 matlab/test/arrow/internal/validate/index/tString.m            |  6 +++---
 matlab/test/arrow/tabular/tRecordBatch.m                       |  4 ++--
 matlab/test/arrow/tabular/tSchema.m                            |  6 +++---
 matlab/test/arrow/tabular/tTable.m                             |  4 ++--
 matlab/test/arrow/tabular/tTabularDisplay.m                    |  4 ++--
 matlab/tools/addInstallDirToSearchPath.m                       |  4 ++--
 33 files changed, 56 insertions(+), 56 deletions(-)

diff --git a/matlab/src/cpp/arrow/matlab/array/proxy/array.cc b/matlab/src/cpp/arrow/matlab/array/proxy/array.cc
index bc5ab093b4..cdeb4e03fa 100644
--- a/matlab/src/cpp/arrow/matlab/array/proxy/array.cc
+++ b/matlab/src/cpp/arrow/matlab/array/proxy/array.cc
@@ -60,7 +60,7 @@ namespace arrow::matlab::array::proxy {
             /* 
              * Display primitive and string types horizontally without 
              * opening and closing delimiters. Use " | " as the delimiter
-             * between elments. Below is an example Int32Array display:
+             * between elements. Below is an example Int32Array display:
              *
              *    1 | 2 | 3 | ... | 6 | 7 | 8
              */
diff --git a/matlab/src/cpp/arrow/matlab/array/proxy/time_array.h b/matlab/src/cpp/arrow/matlab/array/proxy/time_array.h
index 68713a3dcc..696f021921 100644
--- a/matlab/src/cpp/arrow/matlab/array/proxy/time_array.h
+++ b/matlab/src/cpp/arrow/matlab/array/proxy/time_array.h
@@ -48,7 +48,7 @@ namespace arrow::matlab::array::proxy {
        const std::u16string& time_unit_utf16 = time_unit_mda[0];
        MATLAB_ASSIGN_OR_ERROR(const auto time_unit,
                               timeUnitFromString(time_unit_utf16),
-                              error::UKNOWN_TIME_UNIT_ERROR_ID);
+                              error::UNKNOWN_TIME_UNIT_ERROR_ID);
 
        MATLAB_ERROR_IF_NOT_OK(validateTimeUnit<ArrowType>(time_unit),
                               error::INVALID_TIME_UNIT);
diff --git a/matlab/src/cpp/arrow/matlab/array/proxy/timestamp_array.cc b/matlab/src/cpp/arrow/matlab/array/proxy/timestamp_array.cc
index 45a5b6ab92..24abb4161a 100644
--- a/matlab/src/cpp/arrow/matlab/array/proxy/timestamp_array.cc
+++ b/matlab/src/cpp/arrow/matlab/array/proxy/timestamp_array.cc
@@ -49,7 +49,7 @@ namespace arrow::matlab::array::proxy {
        const std::u16string& u16_timeunit = units_mda[0];
        MATLAB_ASSIGN_OR_ERROR(const auto time_unit,
                               arrow::matlab::type::timeUnitFromString(u16_timeunit),
-                              error::UKNOWN_TIME_UNIT_ERROR_ID)
+                              error::UNKNOWN_TIME_UNIT_ERROR_ID)
 
        // create the timestamp_type
        auto data_type = arrow::timestamp(time_unit, timezone);
diff --git a/matlab/src/cpp/arrow/matlab/bit/pack.cc b/matlab/src/cpp/arrow/matlab/bit/pack.cc
index e80ce72365..d47f2955f1 100644
--- a/matlab/src/cpp/arrow/matlab/bit/pack.cc
+++ b/matlab/src/cpp/arrow/matlab/bit/pack.cc
@@ -41,7 +41,7 @@ namespace arrow::matlab::bit {
         }
     }
 
-    // Pack an unpacked MATLAB logical array into into a bit-packed arrow::Buffer.
+    // Pack an unpacked MATLAB logical array into a bit-packed arrow::Buffer.
     arrow::Result<std::shared_ptr<arrow::Buffer>> pack(const ::matlab::data::TypedArray<bool> matlab_logical_array) {
         // Validate that the input arrow::Buffer has sufficient size to store a full bit-packed
         // representation of the input MATLAB logical array.
diff --git a/matlab/src/cpp/arrow/matlab/error/error.h b/matlab/src/cpp/arrow/matlab/error/error.h
index e6be411b62..c9eaf1d964 100644
--- a/matlab/src/cpp/arrow/matlab/error/error.h
+++ b/matlab/src/cpp/arrow/matlab/error/error.h
@@ -170,7 +170,7 @@ namespace arrow::matlab::error {
     static const char* UNICODE_CONVERSION_ERROR_ID = "arrow:matlab:unicode:UnicodeConversion";
     static const char* STRING_BUILDER_APPEND_FAILED = "arrow:matlab:array:string:StringBuilderAppendFailed";
     static const char* STRING_BUILDER_FINISH_FAILED = "arrow:matlab:array:string:StringBuilderFinishFailed";
-    static const char* UKNOWN_TIME_UNIT_ERROR_ID = "arrow:matlab:UnknownTimeUnit";
+    static const char* UNKNOWN_TIME_UNIT_ERROR_ID = "arrow:matlab:UnknownTimeUnit";
     static const char* INVALID_TIME_UNIT = "arrow:type:InvalidTimeUnit";
     static const char* FIELD_FAILED_TO_CREATE_TYPE_PROXY = "arrow:field:FailedToCreateTypeProxy";
     static const char* ARRAY_FAILED_TO_CREATE_TYPE_PROXY = "arrow:array:FailedToCreateTypeProxy";
diff --git a/matlab/src/cpp/arrow/matlab/tabular/get_row_as_string.h b/matlab/src/cpp/arrow/matlab/tabular/get_row_as_string.h
index 824b6c19a7..aaa0d57b11 100644
--- a/matlab/src/cpp/arrow/matlab/tabular/get_row_as_string.h
+++ b/matlab/src/cpp/arrow/matlab/tabular/get_row_as_string.h
@@ -56,11 +56,11 @@ namespace arrow::matlab::tabular {
                 ARROW_RETURN_NOT_OK(arrow::PrettyPrint(*slice, opts, &ss));
             } else if (type_id == arrow::Type::type::STRUCT) {
                 // Use <Struct> as a placeholder since we don't have a good
-                // way to display StructArray elements horiztonally on screen.
+                // way to display StructArray elements horizontally on screen.
                 ss << "<Struct>";
             } else if (type_id == arrow::Type::type::LIST) {
                 // Use <List> as a placeholder since we don't have a good
-                // way to display ListArray elements horiztonally on screen.
+                // way to display ListArray elements horizontally on screen.
                 ss << "<List>";
             } else {
                 return arrow::Status::NotImplemented("Datatype " + column->type()->ToString() + "is not currently supported for display.");
diff --git a/matlab/src/cpp/arrow/matlab/tabular/proxy/schema.cc b/matlab/src/cpp/arrow/matlab/tabular/proxy/schema.cc
index 023381e005..db7486bdb1 100644
--- a/matlab/src/cpp/arrow/matlab/tabular/proxy/schema.cc
+++ b/matlab/src/cpp/arrow/matlab/tabular/proxy/schema.cc
@@ -129,7 +129,7 @@ namespace arrow::matlab::tabular::proxy {
         std::vector<std::u16string> field_names_utf16;
         field_names_utf16.reserve(num_fields);
 
-        // Conver the field names from UTF-8 to UTF-16.
+        // Convert the field names from UTF-8 to UTF-16.
         for (const auto& field_name_utf8 : field_names_utf8) {
             MATLAB_ASSIGN_OR_ERROR_WITH_CONTEXT(const auto field_name_utf16, arrow::util::UTF8StringToUTF16(field_name_utf8), context, error::UNICODE_CONVERSION_ERROR_ID);
             field_names_utf16.push_back(field_name_utf16);
diff --git a/matlab/src/cpp/arrow/matlab/type/proxy/time_type.cc b/matlab/src/cpp/arrow/matlab/type/proxy/time_type.cc
index 84c875ba48..16d5cc3193 100644
--- a/matlab/src/cpp/arrow/matlab/type/proxy/time_type.cc
+++ b/matlab/src/cpp/arrow/matlab/type/proxy/time_type.cc
@@ -53,7 +53,7 @@ namespace arrow::matlab::type::proxy {
         const std::u16string& time_unit_utf16 = time_unit_mda[0];
         MATLAB_ASSIGN_OR_ERROR(const auto timeunit,
                                timeUnitFromString(time_unit_utf16),
-                               error::UKNOWN_TIME_UNIT_ERROR_ID);
+                               error::UNKNOWN_TIME_UNIT_ERROR_ID);
 
         // validate timeunit 
         MATLAB_ERROR_IF_NOT_OK(validateTimeUnit<ArrowType>(timeunit),
diff --git a/matlab/src/cpp/arrow/matlab/type/proxy/timestamp_type.cc b/matlab/src/cpp/arrow/matlab/type/proxy/timestamp_type.cc
index 9ae5fcde67..7397e96826 100644
--- a/matlab/src/cpp/arrow/matlab/type/proxy/timestamp_type.cc
+++ b/matlab/src/cpp/arrow/matlab/type/proxy/timestamp_type.cc
@@ -48,7 +48,7 @@ namespace arrow::matlab::type::proxy {
         const std::u16string& utf16_timeunit = timeunit_mda[0];
         MATLAB_ASSIGN_OR_ERROR(const auto timeunit,
                                arrow::matlab::type::timeUnitFromString(utf16_timeunit),
-                               error::UKNOWN_TIME_UNIT_ERROR_ID);
+                               error::UNKNOWN_TIME_UNIT_ERROR_ID);
 
         auto type = arrow::timestamp(timeunit, timezone);
         auto time_type = std::static_pointer_cast<arrow::TimestampType>(type);
diff --git a/matlab/src/matlab/+arrow/+array/StructArray.m b/matlab/src/matlab/+arrow/+array/StructArray.m
index a92243faaa..70b2c16a96 100644
--- a/matlab/src/matlab/+arrow/+array/StructArray.m
+++ b/matlab/src/matlab/+arrow/+array/StructArray.m
@@ -100,7 +100,7 @@ classdef StructArray < arrow.array.Array
         end
 
         function nullSubVal = get.NullSubstitutionValue(obj)
-            % Return a cell array containing each field's type-specifc
+            % Return a cell array containing each field's type-specific
             % "null" value. For example, NaN is the type-specific null
             % value for Float32Arrays and Float64Arrays
             numFields = obj.NumFields;
diff --git a/matlab/src/matlab/+arrow/+internal/+test/+display/makeLinkString.m b/matlab/src/matlab/+arrow/+internal/+test/+display/makeLinkString.m
index df6a116120..79065ba1c8 100644
--- a/matlab/src/matlab/+arrow/+internal/+test/+display/makeLinkString.m
+++ b/matlab/src/matlab/+arrow/+internal/+test/+display/makeLinkString.m
@@ -20,7 +20,7 @@ function link = makeLinkString(opts)
         opts.FullClassName(1, 1) string
         opts.ClassName(1, 1) string
         % When displaying heterogeneous arrays, only the name of the 
-        % closest shared anscestor class is displayed in bold. All other
+        % closest shared ancestor class is displayed in bold. All other
         % class names are not bolded.
         opts.BoldFont(1, 1) logical
     end
diff --git a/matlab/src/matlab/+arrow/+internal/+validate/nonsparse.m b/matlab/src/matlab/+arrow/+internal/+validate/nonsparse.m
index 8f7557c18b..ec5796edf0 100644
--- a/matlab/src/matlab/+arrow/+internal/+validate/nonsparse.m
+++ b/matlab/src/matlab/+arrow/+internal/+validate/nonsparse.m
@@ -1,5 +1,5 @@
 %NONSPARESE Verifies data is nonsparse. Otherwise throws an error with the 
-% identifier "arrrow:array:Sparse".
+% identifier "arrow:array:Sparse".
 
 % Licensed to the Apache Software Foundation (ASF) under one or more
 % contributor license agreements.  See the NOTICE file distributed with
diff --git a/matlab/src/matlab/+arrow/+internal/+validate/realnumeric.m b/matlab/src/matlab/+arrow/+internal/+validate/realnumeric.m
index 1f57cee4d8..3b8d0c5402 100644
--- a/matlab/src/matlab/+arrow/+internal/+validate/realnumeric.m
+++ b/matlab/src/matlab/+arrow/+internal/+validate/realnumeric.m
@@ -1,5 +1,5 @@
 %REALNUMERIC Verifies the numeric array data is real. Otherwise throws an 
-% error with the identifier "arrrow:array:ComplexNumeric".
+% error with the identifier "arrow:array:ComplexNumeric".
 
 % Licensed to the Apache Software Foundation (ASF) under one or more
 % contributor license agreements.  See the NOTICE file distributed with
diff --git a/matlab/src/matlab/+arrow/+internal/+validate/shape.m b/matlab/src/matlab/+arrow/+internal/+validate/shape.m
index d9a8e29076..f75363d4c0 100644
--- a/matlab/src/matlab/+arrow/+internal/+validate/shape.m
+++ b/matlab/src/matlab/+arrow/+internal/+validate/shape.m
@@ -1,5 +1,5 @@
 %SHAPE Verifies data is either a vector or empty. Otherwise throws an error
-% with the identifier "arrrow:array:InvalidShape".
+% with the identifier "arrow:array:InvalidShape".
 
 % Licensed to the Apache Software Foundation (ASF) under one or more
 % contributor license agreements.  See the NOTICE file distributed with
diff --git a/matlab/src/matlab/+arrow/+internal/+validate/type.m b/matlab/src/matlab/+arrow/+internal/+validate/type.m
index 7977d812ad..50306d722c 100644
--- a/matlab/src/matlab/+arrow/+internal/+validate/type.m
+++ b/matlab/src/matlab/+arrow/+internal/+validate/type.m
@@ -1,5 +1,5 @@
 %TYPE Verifies data has the expected class type. Otherwise throws an 
-% error with the identifier "arrrow:array:InvalidType".
+% error with the identifier "arrow:array:InvalidType".
 
 % Licensed to the Apache Software Foundation (ASF) under one or more
 % contributor license agreements.  See the NOTICE file distributed with
diff --git a/matlab/src/matlab/+arrow/+tabular/+internal/makeValidDimensionNames.m b/matlab/src/matlab/+arrow/+tabular/+internal/makeValidDimensionNames.m
index 88f7b10806..b8a2bcfded 100644
--- a/matlab/src/matlab/+arrow/+tabular/+internal/makeValidDimensionNames.m
+++ b/matlab/src/matlab/+arrow/+tabular/+internal/makeValidDimensionNames.m
@@ -20,9 +20,9 @@ function dimnames = makeValidDimensionNames(varnames)
     dimnames = ["Row" "Variables"];
     
     numvars = numel(varnames);
-    indicesToUniqify = [numvars + 1 numvars + 2];
+    indicesToUniquify = [numvars + 1 numvars + 2];
 
-    strs = matlab.lang.makeUniqueStrings([varnames dimnames], indicesToUniqify);
-    dimnames = strs(indicesToUniqify);
+    strs = matlab.lang.makeUniqueStrings([varnames dimnames], indicesToUniquify);
+    dimnames = strs(indicesToUniquify);
 end
 
diff --git a/matlab/src/matlab/+arrow/+type/Type.m b/matlab/src/matlab/+arrow/+type/Type.m
index 6dc4fbc438..2a2ba145a6 100644
--- a/matlab/src/matlab/+arrow/+type/Type.m
+++ b/matlab/src/matlab/+arrow/+type/Type.m
@@ -82,7 +82,7 @@ classdef (Abstract) Type < matlab.mixin.CustomDisplay & ...
             else
                 % Check if every type in the array has the same class type.
                 % If so, call getDisplayPropertyGroups() so that all
-                % properties assoicated with that class are displayed.
+                % properties associated with that class are displayed.
                 classnames = arrayfun(@(type) string(class(type)), obj);
                 if numel(unique(classnames)) == 1
                     groups = getDisplayPropertyGroups(obj(1));
diff --git a/matlab/src/matlab/+arrow/+util/table2mlarrow.m b/matlab/src/matlab/+arrow/+util/table2mlarrow.m
index 391b0603ea..a629cc4fb8 100644
--- a/matlab/src/matlab/+arrow/+util/table2mlarrow.m
+++ b/matlab/src/matlab/+arrow/+util/table2mlarrow.m
@@ -6,7 +6,7 @@ function [variables, metadata] = table2mlarrow(t)
 %   Takes a MATLAB table T and returns struct array equivalents
 %   which are suitable for passing to the mlarrow C++ MEX layer.
 %
-%   VARIABLES is an 1xN struct array representing the the table variables.
+%   VARIABLES is an 1xN struct array representing the table variables.
 %
 %   VARIABLES contains the following fields:
 %
diff --git a/matlab/test/arrow/array/list/tTableValidator.m b/matlab/test/arrow/array/list/tTableValidator.m
index b3aeac9b67..fcebaa9046 100644
--- a/matlab/test/arrow/array/list/tTableValidator.m
+++ b/matlab/test/arrow/array/list/tTableValidator.m
@@ -255,7 +255,7 @@ classdef tTableValidator < matlab.unittest.TestCase
         end
 
         function GetElementLength(testCase)
-            % Verify GetElementLength returns the the number of rows as the
+            % Verify GetElementLength returns the number of rows as the
             % length of the element.
             import arrow.array.internal.list.TableValidator
             
diff --git a/matlab/test/arrow/array/tChunkedArray.m b/matlab/test/arrow/array/tChunkedArray.m
index cf11412ebb..c37206241b 100644
--- a/matlab/test/arrow/array/tChunkedArray.m
+++ b/matlab/test/arrow/array/tChunkedArray.m
@@ -112,7 +112,7 @@ classdef tChunkedArray < matlab.unittest.TestCase
             % Verifies ChunkedArrays are considered equal if:
             %
             %  1. Their Type properties are equal
-            %  2. Their NumElements properties ar eequal
+            %  2. Their NumElements properties are equal
             %  3. The same elements are considered null
             %  4. All corresponding valid elements have the same values
             %
diff --git a/matlab/test/arrow/array/tFloat32Array.m b/matlab/test/arrow/array/tFloat32Array.m
index 8a583c6b64..8c9c0f1f36 100644
--- a/matlab/test/arrow/array/tFloat32Array.m
+++ b/matlab/test/arrow/array/tFloat32Array.m
@@ -102,7 +102,7 @@ classdef tFloat32Array < hNumericArray
             testCase.verifyEqual(toMATLAB(arrowArray), single([NaN; 2; 3]));
         end
 
-        function NumericlValidNVPair(testCase)
+        function NumericValidNVPair(testCase)
             matlabArray = single([1 2 3]); 
 
             % Supply a numeric vector for Valid 
diff --git a/matlab/test/arrow/array/tFloat64Array.m b/matlab/test/arrow/array/tFloat64Array.m
index ec2871a124..84dfe57e6c 100755
--- a/matlab/test/arrow/array/tFloat64Array.m
+++ b/matlab/test/arrow/array/tFloat64Array.m
@@ -107,7 +107,7 @@ classdef tFloat64Array < hNumericArray
             testCase.verifyEqual(toMATLAB(arrowArray), [NaN; 2; 3]);
         end
 
-        function NumericlValidNVPair(testCase)
+        function NumericValidNVPair(testCase)
             matlabArray = [1 2 3]; 
 
             % Supply a numeric vector for Valid 
diff --git a/matlab/test/arrow/array/tListArray.m b/matlab/test/arrow/array/tListArray.m
index 07304eb384..0b5a74313f 100644
--- a/matlab/test/arrow/array/tListArray.m
+++ b/matlab/test/arrow/array/tListArray.m
@@ -201,7 +201,7 @@ classdef tListArray < matlab.unittest.TestCase
 
         function TestValidationModeNone(testCase, TestValidationModeArray)
             % Verify that no error is thrown when supplying the
-            % ValidatationMode name-value pair, with a value of
+            % ValidationMode name-value pair, with a value of
             % arrow.array.ValidationMode.None, to the
             % arrow.array.ListArray.fromArrays method.
             offsets = TestValidationModeArray.Offsets;
@@ -213,7 +213,7 @@ classdef tListArray < matlab.unittest.TestCase
 
         function TestValidationModeMinimal(testCase, TestValidationModeArray)
             % Verify that an error of type arrow:array:ValidateMinimalFailed
-            % is thrown when supplying the ValidatationMode name-value pair,
+            % is thrown when supplying the ValidationMode name-value pair,
             % with a value of arrow.array.ValidationMode.Minimal, to the
             % arrow.array.ListArray.fromArrays method, if the provided offsets
             % and values arrays are invalid.
@@ -231,7 +231,7 @@ classdef tListArray < matlab.unittest.TestCase
 
         function TestValidationModeFull(testCase, TestValidationModeArray)
             % Verify that an error of type arrow:array:ValidateFullFailed
-            % is thrown when supplying the ValidatationMode name-value pair,
+            % is thrown when supplying the ValidationMode name-value pair,
             % with a value of arrow.array.ValidationMode.Full, to the
             % arrow.array.ListArray.fromArrays method, if the provided offsets
             % and values arrays are invalid.
@@ -250,7 +250,7 @@ classdef tListArray < matlab.unittest.TestCase
         function TestValidationModeUnsupportedEnum(testCase)
             % Verify that an error of type arrow:array:ValidateUnsupportedEnum
             % is thrown when an unsupported integer enumeration value is
-            % supplied for the ValidatationMode parameter to the internal
+            % supplied for the ValidationMode parameter to the internal
             % C++ ListArray Proxy validate method.
             offsets = arrow.array.Int32Array.fromMATLAB(int32([0, 1, 2]));
             values = arrow.array.Float64Array.fromMATLAB([1, 2, 3]);
diff --git a/matlab/test/arrow/array/tTime32Array.m b/matlab/test/arrow/array/tTime32Array.m
index 24c3508a86..99d5839974 100644
--- a/matlab/test/arrow/array/tTime32Array.m
+++ b/matlab/test/arrow/array/tTime32Array.m
@@ -271,7 +271,7 @@ classdef tTime32Array < matlab.unittest.TestCase
             tc.verifyFalse(isequal(array1, array1, array3, array4, array5)); 
         end
 
-        function TestIsEqualFalseTimeUnitMistmatch(tc)
+        function TestIsEqualFalseTimeUnitMismatch(tc)
             % Verify two Time32Arrays are not considered equal if they have
             % different TimeUnit values.
 
diff --git a/matlab/test/arrow/array/tTime64Array.m b/matlab/test/arrow/array/tTime64Array.m
index 3f66ebd638..816b7acddf 100644
--- a/matlab/test/arrow/array/tTime64Array.m
+++ b/matlab/test/arrow/array/tTime64Array.m
@@ -128,10 +128,10 @@ classdef tTime64Array < matlab.unittest.TestCase
         function TestValid(testCase, Unit)
             % Verify the Valid property returns the expected logical vector.
             times = seconds([100 200 NaN 355 NaN 400]);
-            arrray = testCase.ArrowArrayConstructorFcn(times, TImeUnit=Unit);
-            testCase.verifyEqual(arrray.Valid, [true; true; false; true; false; true]);
-            testCase.verifyEqual(toMATLAB(arrray), times');
-            testCase.verifyEqual(duration(arrray), times');
+            array = testCase.ArrowArrayConstructorFcn(times, TimeUnit=Unit);
+            testCase.verifyEqual(array.Valid, [true; true; false; true; false; true]);
+            testCase.verifyEqual(toMATLAB(array), times');
+            testCase.verifyEqual(duration(array), times');
         end
 
         function InferNullsTrueNVPair(testCase, Unit)
@@ -299,7 +299,7 @@ classdef tTime64Array < matlab.unittest.TestCase
             tc.verifyFalse(isequal(array1, array1, array3, array4, array5)); 
         end
 
-        function TestIsEqualFalseTimeUnitMistmatch(tc)
+        function TestIsEqualFalseTimeUnitMismatch(tc)
             % Verify two Time64Arrays are not considered equal if they have
             % different TimeUnit values.
             times1 = seconds([1 2 3 4]);
diff --git a/matlab/test/arrow/array/tTimestampArray.m b/matlab/test/arrow/array/tTimestampArray.m
index 54af192f93..cfb18cdcef 100644
--- a/matlab/test/arrow/array/tTimestampArray.m
+++ b/matlab/test/arrow/array/tTimestampArray.m
@@ -234,7 +234,7 @@ classdef tTimestampArray < matlab.unittest.TestCase
             tc.verifyFalse(isequal(array1, array1, array3, array4, array5)); 
         end
 
-        function TestIsEqualFalseTimeZoneMistmatch(tc)
+        function TestIsEqualFalseTimeZoneMismatch(tc)
             % Verify two TimestampArrays are not considered equal if one
             % has a TimeZone and one does not. 
             dates1 = datetime(2023, 6, 22, TimeZone="America/Anchorage") + days(0:4);
@@ -263,7 +263,7 @@ classdef tTimestampArray < matlab.unittest.TestCase
             tc.verifyFalse(isequal(array1, array2));
         end
 
-        function TestIsEqualFalseTimeUnitMistmatch(tc, TimeZone)
+        function TestIsEqualFalseTimeUnitMismatch(tc, TimeZone)
             % Verify two TimestampArrays are not considered equal if their
             % TimeUnit values differ.
             dates1 = datetime(2023, 6, 22, TimeZone=TimeZone) + days(0:4);
diff --git a/matlab/test/arrow/internal/validate/index/tNumeric.m b/matlab/test/arrow/internal/validate/index/tNumeric.m
index e3d1c9d7e5..d4e81fa2e1 100644
--- a/matlab/test/arrow/internal/validate/index/tNumeric.m
+++ b/matlab/test/arrow/internal/validate/index/tNumeric.m
@@ -20,7 +20,7 @@ classdef tNumeric < matlab.unittest.TestCase
     methods (Test)
 
         function NonPositiveError(testCase)
-            % Verify numeric() throws an error whose idenitifier is 
+            % Verify numeric() throws an error whose identifier is 
             % "arrow:badsubscript:NonPositive" if the index array provided
             % has non-positive values.
 
@@ -39,7 +39,7 @@ classdef tNumeric < matlab.unittest.TestCase
         end
 
         function NonIntegerError(testCase)
-            % Verify numeric() throws an error whose idenitifier is 
+            % Verify numeric() throws an error whose identifier is 
             % "arrow:badsubscript:NonInteger" if the index array provided
             % has non-integer values.
 
@@ -61,7 +61,7 @@ classdef tNumeric < matlab.unittest.TestCase
         end
 
         function NonRealError(testCase)
-            % Verify numeric() throws an error whose idenitifier is 
+            % Verify numeric() throws an error whose identifier is 
             % "arrow:badsubscript:NonReal" if the index array is
             % complex.
 
@@ -77,7 +77,7 @@ classdef tNumeric < matlab.unittest.TestCase
         end
 
         function ExceedsIntMaxError(testCase)
-            % Verify numeric() throws an error whose idenitifier is 
+            % Verify numeric() throws an error whose identifier is 
             % "arrow:badsubscript:ExceedsIntMax" if the index array 
             % provided has values that exceed the intmax(intType).
 
@@ -122,7 +122,7 @@ classdef tNumeric < matlab.unittest.TestCase
         end
 
         function ErrorIfNonNumeric(testCase)
-            % Verify numeric() throws an error whose idenitifer is 
+            % Verify numeric() throws an error whose identifier is 
             % "arrow:badsubscript:NonNumeric" if provided a non-numeric
             % array as the index.
 
diff --git a/matlab/test/arrow/internal/validate/index/tString.m b/matlab/test/arrow/internal/validate/index/tString.m
index e8e27024ea..660b2108fd 100644
--- a/matlab/test/arrow/internal/validate/index/tString.m
+++ b/matlab/test/arrow/internal/validate/index/tString.m
@@ -20,9 +20,9 @@ classdef tString < matlab.unittest.TestCase
     methods(Test)
         
         function MissingStringError(testCase)
-            % Verify string() throws an error whose idenitifier is 
+            % Verify string() throws an error whose identifier is 
             % "arrow:badsubscript:MissingString" if the index array 
-            % provided has mising string values.
+            % provided has missing string values.
 
             import arrow.internal.validate.*
 
@@ -74,7 +74,7 @@ classdef tString < matlab.unittest.TestCase
         end
 
         function ErrorIfNonString(testCase)
-            % Verify string() throws an error whose idenitifer is 
+            % Verify string() throws an error whose identifier is 
             % "arrow:badsubscript:NonString" if neither a string array,
             % char array, nor cellstr array was provided as the index. 
 
diff --git a/matlab/test/arrow/tabular/tRecordBatch.m b/matlab/test/arrow/tabular/tRecordBatch.m
index 700d1aac4c..94166f6f33 100644
--- a/matlab/test/arrow/tabular/tRecordBatch.m
+++ b/matlab/test/arrow/tabular/tRecordBatch.m
@@ -235,7 +235,7 @@ classdef tRecordBatch < matlab.unittest.TestCase
         end
 
         function Schema(tc)
-        % Verify that the public Schema property returns an approprate
+        % Verify that the public Schema property returns an appropriate
         % instance of arrow.tabular.Schema.
             t = table(["A"; "B"; "C"], ...
                       [1; 2; 3], ...
@@ -331,7 +331,7 @@ classdef tRecordBatch < matlab.unittest.TestCase
                 ColumnNames=["A", "B", "C"] ...
             );
 
-            % Matching should be case sensitive.
+            % Matching should be case-sensitive.
             name = "a";
             testCase.verifyError(@() recordBatch.column(name), "arrow:tabular:schema:AmbiguousFieldName");
 
diff --git a/matlab/test/arrow/tabular/tSchema.m b/matlab/test/arrow/tabular/tSchema.m
index bb95c1823b..4acb17b3a2 100644
--- a/matlab/test/arrow/tabular/tSchema.m
+++ b/matlab/test/arrow/tabular/tSchema.m
@@ -53,7 +53,7 @@ classdef tSchema < matlab.unittest.TestCase
 
         function ConstructSchemaFromProxy(testCase)
             % Verify that an arrow.tabular.Schema instance can be
-            % constructred directly from an existing
+            % constructed directly from an existing
             % arrow.tabular.proxy.Schema Proxy instance.
             schema1 = arrow.schema(arrow.field("a", arrow.uint8));
             % Construct an instance of arrow.tabular.Schema directly from a
@@ -117,7 +117,7 @@ classdef tSchema < matlab.unittest.TestCase
         end
 
         function NumFields(testCase)
-            % Verify that the NumFields property returns an execpted number
+            % Verify that the NumFields property returns an expected number
             % of fields.
             schema = arrow.schema([...
                 arrow.field("A", arrow.uint8), ...
@@ -262,7 +262,7 @@ classdef tSchema < matlab.unittest.TestCase
                 arrow.field("C", arrow.uint32) ...
             ]);
 
-            % Matching should be case sensitive.
+            % Matching should be case-sensitive.
             fieldName = "a";
             testCase.verifyError(@() schema.field(fieldName), "arrow:tabular:schema:AmbiguousFieldName");
 
diff --git a/matlab/test/arrow/tabular/tTable.m b/matlab/test/arrow/tabular/tTable.m
index ee3cc572f2..63b21bdc09 100644
--- a/matlab/test/arrow/tabular/tTable.m
+++ b/matlab/test/arrow/tabular/tTable.m
@@ -333,7 +333,7 @@ classdef tTable < matlab.unittest.TestCase
                 ColumnNames=["A", "B", "C"] ...
             );
 
-            % Matching should be case sensitive.
+            % Matching should be case-sensitive.
             name = "a";
             testCase.verifyError(@() arrowTable.column(name), "arrow:tabular:schema:AmbiguousFieldName");
 
@@ -547,7 +547,7 @@ classdef tTable < matlab.unittest.TestCase
         end
 
         function Schema(testCase)
-            % Verify that the public Schema property returns an approprate
+            % Verify that the public Schema property returns an appropriate
             % instance of arrow.tabular.Table.
             matlabTable = table(...
                 ["A"; "B"; "C"], ...
diff --git a/matlab/test/arrow/tabular/tTabularDisplay.m b/matlab/test/arrow/tabular/tTabularDisplay.m
index 027517edeb..a6d9f23b24 100644
--- a/matlab/test/arrow/tabular/tTabularDisplay.m
+++ b/matlab/test/arrow/tabular/tTabularDisplay.m
@@ -129,7 +129,7 @@ classdef tTabularDisplay < matlab.unittest.TestCase
         end
 
         function MultipleRowsAndColumns(testCase, TabularType)
-            % Verify tabular object display when the object has mulitple rows
+            % Verify tabular object display when the object has multiple rows
             % and columns. Only the first row is displayed. All columns are
             % displayed.
             import arrow.internal.test.display.makeLinkString
@@ -156,7 +156,7 @@ classdef tTabularDisplay < matlab.unittest.TestCase
         end
 
         function VeryWideTabular(testCase, TabularType)
-            % Verify that all variables are displayed without any trucation 
+            % Verify that all variables are displayed without any truncation 
             % even when the tabular object is wider than the MATLAB Command
             % Window.
             import arrow.internal.test.display.makeLinkString
diff --git a/matlab/tools/addInstallDirToSearchPath.m b/matlab/tools/addInstallDirToSearchPath.m
index 6725343954..2f38007bee 100644
--- a/matlab/tools/addInstallDirToSearchPath.m
+++ b/matlab/tools/addInstallDirToSearchPath.m
@@ -24,7 +24,7 @@ function addInstallDirToSearchPath(installDirPath, addInstallDirToSearchPath, ad
         % Return exit code 1 to indicate savepath failure and 0 to indicate the path has
         % been saved successfully.
         if status == 0
-            disp("Sucessfully added installation directory to the MATLAB Search Path: " + installDirPath);
+            disp("Successfully added installation directory to the MATLAB Search Path: " + installDirPath);
             quit(0);
         else
             quit(1);
@@ -48,7 +48,7 @@ function addInstallDirToSearchPath(installDirPath, addInstallDirToSearchPath, ad
             % fopen failed.
             quit(2);
         end
-        disp("Sucessfully appended an addpath command to the MATLAB startup.m file located at the userpath to add installation directory to the MATLAB Search Path: " + installDirPath);
+        disp("Successfully appended an addpath command to the MATLAB startup.m file located at the userpath to add installation directory to the MATLAB Search Path: " + installDirPath);
         quit(0);
     end
 end