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

curth 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 70e19f0c33 GH-38942: [C#] Fix spelling (#38943)
70e19f0c33 is described below

commit 70e19f0c33751a80ca03192fdb060f661034d0a0
Author: Josh Soref <[email protected]>
AuthorDate: Wed Nov 29 21:25:04 2023 -0500

    GH-38942: [C#] Fix spelling (#38943)
    
    
    
    ### Rationale for this change
    
    ### What changes are included in this PR?
    
    Spelling fixes to csharp/
    
    ### Are these changes tested?
    
    ### Are there any user-facing changes?
    
    * Closes: #38942
    
    Authored-by: Josh Soref <[email protected]>
    Signed-off-by: Curt Hagenlocher <[email protected]>
---
 csharp/src/Apache.Arrow/ArrowBuffer.BitmapBuilder.cs     |  2 +-
 .../src/Apache.Arrow/Flatbuf/FlatBuffers/ByteBuffer.cs   |  2 +-
 .../Flatbuf/FlatBuffers/FlatBufferBuilder.cs             |  4 ++--
 .../Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferVerify.cs | 16 ++++++++--------
 csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/Table.cs     |  6 +++---
 csharp/src/Apache.Arrow/Flatbuf/Types/Timestamp.cs       |  2 +-
 .../Properties/{AssembyInfo.cs => AssemblyInfo.cs}       |  0
 .../Apache.Arrow.Tests/ArrowBufferBitmapBuilderTests.cs  |  6 +++---
 csharp/test/Apache.Arrow.Tests/ArrowFileWriterTests.cs   |  4 ++--
 9 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/csharp/src/Apache.Arrow/ArrowBuffer.BitmapBuilder.cs 
b/csharp/src/Apache.Arrow/ArrowBuffer.BitmapBuilder.cs
index 410c22885a..6bdd131763 100644
--- a/csharp/src/Apache.Arrow/ArrowBuffer.BitmapBuilder.cs
+++ b/csharp/src/Apache.Arrow/ArrowBuffer.BitmapBuilder.cs
@@ -98,7 +98,7 @@ namespace Apache.Arrow
             public BitmapBuilder Append(ReadOnlySpan<byte> source, int 
validBits)
             {                
                 if (!source.IsEmpty && validBits > source.Length * 8)
-                    throw new ArgumentException($"Number of valid bits 
({validBits}) cannot be greater than the the source span length ({source.Length 
* 8} bits).", nameof(validBits));
+                    throw new ArgumentException($"Number of valid bits 
({validBits}) cannot be greater than the source span length ({source.Length * 
8} bits).", nameof(validBits));
                 
                 // Check if memory copy can be used from the source array 
(performance optimization for byte-aligned coping)
                 if (!source.IsEmpty && Length % 8 == 0)
diff --git a/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/ByteBuffer.cs 
b/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/ByteBuffer.cs
index e65735c347..c3b3a1766a 100644
--- a/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/ByteBuffer.cs
+++ b/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/ByteBuffer.cs
@@ -208,7 +208,7 @@ namespace Google.FlatBuffers
         /// Checks if the Type provided is supported as scalar value
         /// </summary>
         /// <typeparam name="T">The Type to check</typeparam>
-        /// <returns>True if the type is a scalar type that is supported, 
falsed otherwise</returns>
+        /// <returns>True if the type is a scalar type that is supported, 
false otherwise</returns>
         public static bool IsSupportedType<T>()
         {
             return genericSizes.ContainsKey(typeof(T));
diff --git a/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferBuilder.cs 
b/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferBuilder.cs
index aa17d23867..422c9403b2 100644
--- a/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferBuilder.cs
+++ b/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferBuilder.cs
@@ -67,7 +67,7 @@ namespace Google.FlatBuffers
         }
 
         /// <summary>
-        /// Create a FlatBufferBuilder backed by the pased in ByteBuffer
+        /// Create a FlatBufferBuilder backed by the passed in ByteBuffer
         /// </summary>
         /// <param name="buffer">The ByteBuffer to write to</param>
         public FlatBufferBuilder(ByteBuffer buffer)
@@ -474,7 +474,7 @@ namespace Google.FlatBuffers
             return EndVector();
         }
 
-        /// @cond FLATBUFFERS_INTENRAL
+        /// @cond FLATBUFFERS_INTERNAL
         public void Nested(int obj)
         {
             // Structs are always stored inline, so need to be created right
diff --git a/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferVerify.cs 
b/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferVerify.cs
index b108aa3e28..418d38e32b 100644
--- a/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferVerify.cs
+++ b/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/FlatBufferVerify.cs
@@ -117,7 +117,7 @@ namespace Google.FlatBuffers
 
     /// <summary> The Constructor of the Verifier object with input 
parameters: ByteBuffer and/or Options </summary>
     /// <param name="buf"> Input flat byte buffer defined as ByteBuffer 
type</param>
-    /// <param name="options"> Options object with settings for the 
coniguration the Verifier </param>
+    /// <param name="options"> Options object with settings for the 
configuration the Verifier </param>
     public Verifier(ByteBuffer buf, Options options = null)
     {
       verifier_buffer = buf;
@@ -261,7 +261,7 @@ namespace Google.FlatBuffers
 
     }
     /// <summary> Get table data area absolute offset from vtable. Result is 
the absolute buffer offset.
-    /// The result value offset cannot be '0' (pointing to itself) so after 
validation this method returnes '0'
+    /// The result value offset cannot be '0' (pointing to itself) so after 
validation this method returns '0'
     /// value as a marker for missing optional entry </summary>
     /// <param name="tablePos"> Table Position value in the Byte Buffer 
</param>
     /// <param name="vtableOffset"> offset value in the Table</param>
@@ -273,7 +273,7 @@ namespace Google.FlatBuffers
       short relPos = GetVRelOffset(Convert.ToInt32(tablePos), vtableOffset);
       if (relPos != 0)
       {
-        // Calculate offset based on table postion
+        // Calculate offset based on table position
         UOffset = Convert.ToUInt32(tablePos + relPos);
       }
       else
@@ -482,7 +482,7 @@ namespace Google.FlatBuffers
       return true;
     }
 
-    /// <summary> Verifiy static/inlined data area field </summary>
+    /// <summary> Verify static/inlined data area field </summary>
     /// <param name="tablePos"> Position in the Table</param>
     /// <param name="offsetId"> Offset to the static/inlined data element 
</param>
     /// <param name="elementSize"> Size of the element </param>
@@ -633,9 +633,9 @@ namespace Google.FlatBuffers
         var vecStart = vecOffset + SIZE_U_OFFSET;
         // Create and Copy nested buffer bytes from part of Verify Buffer
         var nestedByteBuffer = new 
ByteBuffer(verifier_buffer.ToArray(Convert.ToInt32(vecStart), 
Convert.ToInt32(vecLength)));
-        var nestedVerifyier = new Verifier(nestedByteBuffer, options);
+        var nestedVerifier = new Verifier(nestedByteBuffer, options);
         // There is no internal identifier - use empty one
-        if (!nestedVerifyier.CheckBufferFromStart("", 0, verifyAction))
+        if (!nestedVerifier.CheckBufferFromStart("", 0, verifyAction))
         {
           return false;
         }
@@ -643,7 +643,7 @@ namespace Google.FlatBuffers
       return true;
     }
 
-    /// <summary> Verifiy static/inlined data area at absolute offset 
</summary>
+    /// <summary> Verify static/inlined data area at absolute offset </summary>
     /// <param name="pos"> Position of static/inlined data area in the Byte 
Buffer</param>
     /// <param name="elementSize"> Size of the union data</param>
     /// <param name="align"> Alignment bool value </param>
@@ -705,7 +705,7 @@ namespace Google.FlatBuffers
     /// <summary> Verify vector of unions (objects). Unions are verified using 
generated verifyObjFunc </summary>
     /// <param name="tablePos"> Position of the Table</param>
     /// <param name="typeOffsetId"> Offset in the Table (Union type id)</param>
-    /// <param name="offsetId"> Offset to vector of Data Stucture 
offset</param>
+    /// <param name="offsetId"> Offset to vector of Data Structure 
offset</param>
     /// <param name="verifyAction"> Verification Method used for Union</param>
     /// <param name="required"> Required Value when the offset == 0 </param>
     /// <returns>Return True when the verification of the Vector of Unions 
passed</returns>
diff --git a/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/Table.cs 
b/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/Table.cs
index e2452e40eb..860ba55071 100644
--- a/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/Table.cs
+++ b/csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/Table.cs
@@ -91,7 +91,7 @@ namespace Google.FlatBuffers
         }
 
 #if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1)
-        // Get the data of a vector whoses offset is stored at "offset" in 
this object as an
+        // Get the data of a vector whose offset is stored at "offset" in this 
object as an
         // Spant&lt;byte&gt;. If the vector is not present in the ByteBuffer,
         // then an empty span will be returned.
         public Span<T> __vector_as_span<T>(int offset, int elementSize) where 
T : struct
@@ -113,7 +113,7 @@ namespace Google.FlatBuffers
             return MemoryMarshal.Cast<byte, T>(bb.ToSpan(pos, len * 
elementSize));
         }
 #else
-        // Get the data of a vector whoses offset is stored at "offset" in 
this object as an
+        // Get the data of a vector whose offset is stored at "offset" in this 
object as an
         // ArraySegment&lt;byte&gt;. If the vector is not present in the 
ByteBuffer,
         // then a null value will be returned.
         public ArraySegment<byte>? __vector_as_arraysegment(int offset)
@@ -130,7 +130,7 @@ namespace Google.FlatBuffers
         }
 #endif
 
-        // Get the data of a vector whoses offset is stored at "offset" in 
this object as an
+        // Get the data of a vector whose offset is stored at "offset" in this 
object as an
         // T[]. If the vector is not present in the ByteBuffer, then a null 
value will be
         // returned.
         public T[] __vector_as_array<T>(int offset)
diff --git a/csharp/src/Apache.Arrow/Flatbuf/Types/Timestamp.cs 
b/csharp/src/Apache.Arrow/Flatbuf/Types/Timestamp.cs
index 93620ea577..e7b2ac3041 100644
--- a/csharp/src/Apache.Arrow/Flatbuf/Types/Timestamp.cs
+++ b/csharp/src/Apache.Arrow/Flatbuf/Types/Timestamp.cs
@@ -108,7 +108,7 @@ using global::Google.FlatBuffers;
 /// no indication of how to map this information to a physical point in time.
 /// Naive date-times must be handled with care because of this missing
 /// information, and also because daylight saving time (DST) may make
-/// some values ambiguous or non-existent. A naive date-time may be
+/// some values ambiguous or nonexistent. A naive date-time may be
 /// stored as a struct with Date and Time fields. However, it may also be
 /// encoded into a Timestamp column with an empty timezone. The timestamp
 /// values should be computed "as if" the timezone of the date-time values
diff --git a/csharp/src/Apache.Arrow/Properties/AssembyInfo.cs 
b/csharp/src/Apache.Arrow/Properties/AssemblyInfo.cs
similarity index 100%
rename from csharp/src/Apache.Arrow/Properties/AssembyInfo.cs
rename to csharp/src/Apache.Arrow/Properties/AssemblyInfo.cs
diff --git a/csharp/test/Apache.Arrow.Tests/ArrowBufferBitmapBuilderTests.cs 
b/csharp/test/Apache.Arrow.Tests/ArrowBufferBitmapBuilderTests.cs
index dec8274962..a4e698f543 100644
--- a/csharp/test/Apache.Arrow.Tests/ArrowBufferBitmapBuilderTests.cs
+++ b/csharp/test/Apache.Arrow.Tests/ArrowBufferBitmapBuilderTests.cs
@@ -128,7 +128,7 @@ namespace Apache.Arrow.Tests
             [InlineData(new byte[] { 254 }, 4, 12, 11, 1)]
             [InlineData(new byte[] { 254, 1 }, 9, 17, 16, 1)]
             [InlineData(new byte[] { 249, 1 }, 9, 17, 15, 2)]
-            public void 
BitsAreAppendedToBuilderContainingByteAllignedData(byte[] bytesToAppend,
+            public void 
BitsAreAppendedToBuilderContainingByteAlignedData(byte[] bytesToAppend,
                 int validBits,
                 int expectedLength,
                 int expectedSetBitCount,
@@ -154,7 +154,7 @@ namespace Apache.Arrow.Tests
             [InlineData(new byte[] { 254 }, 4, 13, 12, 1)]
             [InlineData(new byte[] { 254, 1 }, 9, 18, 17, 1)]
             [InlineData(new byte[] { 249, 1 }, 9, 18, 16, 2)]
-            public void 
BitsAreAppendedToBuilderContainingNotAllignedData(byte[] bytesToAppend,
+            public void 
BitsAreAppendedToBuilderContainingNotAlignedData(byte[] bytesToAppend,
                 int validBits,
                 int expectedLength,
                 int expectedSetBitCount,
@@ -369,7 +369,7 @@ namespace Apache.Arrow.Tests
             }
 
             [Fact]
-            public void NegtativeCapacityThrows()
+            public void NegativeCapacityThrows()
             {
                 // Arrange
                 var builder = new ArrowBuffer.BitmapBuilder();
diff --git a/csharp/test/Apache.Arrow.Tests/ArrowFileWriterTests.cs 
b/csharp/test/Apache.Arrow.Tests/ArrowFileWriterTests.cs
index a310a3609a..69b8410d03 100644
--- a/csharp/test/Apache.Arrow.Tests/ArrowFileWriterTests.cs
+++ b/csharp/test/Apache.Arrow.Tests/ArrowFileWriterTests.cs
@@ -57,7 +57,7 @@ namespace Apache.Arrow.Tests
         /// </summary>
         /// <returns></returns>
         [Fact]
-        public async Task WritesFooterAlignedMulitpleOf8()
+        public async Task WritesFooterAlignedMultipleOf8()
         {
             RecordBatch originalBatch = 
TestData.CreateSampleRecordBatch(length: 100);
 
@@ -85,7 +85,7 @@ namespace Apache.Arrow.Tests
         /// </summary>
         /// <returns></returns>
         [Fact]
-        public async Task WritesFooterAlignedMulitpleOf8Async()
+        public async Task WritesFooterAlignedMultipleOf8Async()
         {
             RecordBatch originalBatch = 
TestData.CreateSampleRecordBatch(length: 100);
 

Reply via email to